fix(solc/etherscan): trim constructor args (#1024)

This commit is contained in:
Matthias Seitz 2022-03-14 12:28:19 +01:00 committed by GitHub
parent 97c37f187f
commit 20a01a260d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ impl VerifyContract {
) -> Self { ) -> Self {
self.constructor_arguments = constructor_arguments.map(|s| { self.constructor_arguments = constructor_arguments.map(|s| {
s.into() s.into()
.trim()
// TODO is this correct? // TODO is this correct?
.trim_start_matches("0x") .trim_start_matches("0x")
.to_string() .to_string()