@@ -102,6 +102,7 @@ impl VerifyBytecodeArgs {
102
102
let config = self . load_config_emit_warnings ( ) ;
103
103
let provider = utils:: get_provider ( & config) ?;
104
104
105
+ // Get the bytecode at the address, bailing if it doesn't exist.
105
106
let code = provider. get_code_at ( self . address ) . await ?;
106
107
if code. is_empty ( ) {
107
108
eyre:: bail!( "No bytecode found at address {}" , self . address) ;
@@ -115,20 +116,18 @@ impl VerifyBytecodeArgs {
115
116
) ;
116
117
}
117
118
118
- // If chain is not set, we try to get it from the RPC
119
- // If RPC is not set, the default chain is used
119
+ // If chain is not set, we try to get it from the RPC.
120
+ // If RPC is not set, the default chain is used.
120
121
let chain = match config. get_rpc_url ( ) {
121
122
Some ( _) => utils:: get_chain ( config. chain , provider) . await ?,
122
123
None => config. chain . unwrap_or_default ( ) ,
123
124
} ;
124
125
125
- // Set Etherscan options
126
+ // Set Etherscan options.
126
127
self . etherscan . chain = Some ( chain) ;
127
128
self . etherscan . key = config. get_etherscan_config_with_chain ( Some ( chain) ) ?. map ( |c| c. key ) ;
128
129
129
130
let verifier_url = self . verifier . verifier_url . clone ( ) ;
130
- println ! ( "Start verifying contract `{}` deployed on {chain}" , self . address) ;
131
-
132
131
self . verifier
133
132
. verifier
134
133
. client ( & self . etherscan . key ( ) ) ?
0 commit comments