Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
fix(solc/etherscan): trim constructor args (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Mar 14, 2022
1 parent 97c37f1 commit 20a01a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ethers-etherscan/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 20a01a2

Please sign in to comment.