diff --git a/ethers-etherscan/src/contract.rs b/ethers-etherscan/src/contract.rs index 3f7885ddc..a3d11146f 100644 --- a/ethers-etherscan/src/contract.rs +++ b/ethers-etherscan/src/contract.rs @@ -105,6 +105,7 @@ impl VerifyContract { ) -> Self { self.constructor_arguments = constructor_arguments.map(|s| { s.into() + .trim() // TODO is this correct? .trim_start_matches("0x") .to_string()