File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
crates/verify/src/etherscan Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ impl VerificationProvider for EtherscanVerificationProvider {
92
92
. wrap_err_with ( || {
93
93
// valid json
94
94
let args = serde_json:: to_string ( & verify_args) . unwrap ( ) ;
95
- error ! ( ?args, "Failed to submit verification" ) ;
96
95
format ! ( "Failed to submit contract verification, payload:\n {args}" )
97
96
} ) ?;
98
97
@@ -110,16 +109,16 @@ impl VerificationProvider for EtherscanVerificationProvider {
110
109
|| resp. result . starts_with ( "The address is not a smart contract" )
111
110
{
112
111
warn ! ( "{}" , resp. result) ;
113
- return Err ( eyre ! ( "Could not detect the deployment." ) ) ;
112
+ return Err ( eyre ! ( "Could not detect deployment: {}" , resp . result ) ) ;
114
113
}
115
114
116
- warn ! ( "Failed verify submission: {:?}" , resp) ;
117
115
sh_err ! (
118
116
"Encountered an error verifying this contract:\n Response: `{}`\n Details:
119
117
`{}`" ,
120
118
resp. message,
121
119
resp. result
122
120
) ?;
121
+ warn ! ( "Failed verify submission: {:?}" , resp) ;
123
122
std:: process:: exit ( 1 ) ;
124
123
}
125
124
@@ -186,7 +185,11 @@ impl VerificationProvider for EtherscanVerificationProvider {
186
185
}
187
186
188
187
if resp. status == "0" {
189
- return Err ( RetryError :: Break ( eyre ! ( "Contract failed to verify." ) ) ) ;
188
+ return Err ( RetryError :: Break ( eyre ! (
189
+ "Contract verification failed:\n Status: `{}`\n Result: `{}`" ,
190
+ resp. status,
191
+ resp. result
192
+ ) ) ) ;
190
193
}
191
194
192
195
if resp. result == "Pass - Verified" {
You can’t perform that action at this time.
0 commit comments