fix(solc/etherscan): trim constructor args (#1024)
This commit is contained in:
parent
97c37f187f
commit
20a01a260d
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue