Fix encoding of gas price in transaction
Hardhat network doesn't support gas price that is not a QUANTITY.
This commit is contained in:
parent
a381a21c64
commit
c657134018
|
@ -128,7 +128,7 @@ proc `%`*(x: EthSend): JsonNode =
|
|||
if x.gas.isSome:
|
||||
result["gas"] = %x.gas.unsafeGet
|
||||
if x.gasPrice.isSome:
|
||||
result["gasPrice"] = %x.gasPrice.unsafeGet
|
||||
result["gasPrice"] = %Quantity(x.gasPrice.unsafeGet)
|
||||
if x.value.isSome:
|
||||
result["value"] = %x.value.unsafeGet
|
||||
if x.data.len > 0:
|
||||
|
|
Loading…
Reference in New Issue