Changes to TransactionOverrides to support EIP1559
This commit is contained in:
parent
1d89be9d42
commit
4c047fd997
|
@ -18,7 +18,10 @@ type
|
||||||
address: Address
|
address: Address
|
||||||
TransactionOverrides* = object
|
TransactionOverrides* = object
|
||||||
nonce*: ?UInt256
|
nonce*: ?UInt256
|
||||||
|
chainId*: ?UInt256
|
||||||
gasPrice*: ?UInt256
|
gasPrice*: ?UInt256
|
||||||
|
maxFee*: ?UInt256
|
||||||
|
maxPriorityFee*: ?UInt256
|
||||||
gasLimit*: ?UInt256
|
gasLimit*: ?UInt256
|
||||||
|
|
||||||
ContractError* = object of EthersError
|
ContractError* = object of EthersError
|
||||||
|
@ -59,9 +62,12 @@ proc createTransaction(contract: Contract,
|
||||||
Transaction(
|
Transaction(
|
||||||
to: contract.address,
|
to: contract.address,
|
||||||
data: data,
|
data: data,
|
||||||
|
nonce: overrides.nonce,
|
||||||
|
chainId: overrides.chainId,
|
||||||
gasPrice: overrides.gasPrice,
|
gasPrice: overrides.gasPrice,
|
||||||
|
maxFee: overrides.maxFee,
|
||||||
|
maxPriorityFee: overrides.maxPriorityFee,
|
||||||
gasLimit: overrides.gasLimit,
|
gasLimit: overrides.gasLimit,
|
||||||
nonce: overrides.nonce
|
|
||||||
)
|
)
|
||||||
|
|
||||||
proc decodeResponse(T: type, multiple: static bool, bytes: seq[byte]): T =
|
proc decodeResponse(T: type, multiple: static bool, bytes: seq[byte]): T =
|
||||||
|
|
Loading…
Reference in New Issue