From 20a01a260d021d61a7564db6925d30bc9862d394 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 14 Mar 2022 12:28:19 +0100 Subject: [PATCH] fix(solc/etherscan): trim constructor args (#1024) --- ethers-etherscan/src/contract.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ethers-etherscan/src/contract.rs b/ethers-etherscan/src/contract.rs index 3f7885dd..a3d11146 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()