mirror of
https://github.com/status-im/nim-ethers.git
synced 2025-01-27 15:45:49 +00:00
Rename properties after a change in eth to be closer to the spec
This commit is contained in:
parent
84cda04094
commit
c631ca6a64
@ -34,8 +34,8 @@ func toSignableTransaction(transaction: Transaction): SignableTransaction =
|
||||
if maxFee =? transaction.maxFee and
|
||||
maxPriorityFee =? transaction.maxPriorityFee:
|
||||
signable.txType = TxEip1559
|
||||
signable.maxFee = GasInt(maxFee.truncate(uint64))
|
||||
signable.maxPriorityFee = GasInt(maxPriorityFee.truncate(uint64))
|
||||
signable.maxFeePerGas = GasInt(maxFee.truncate(uint64))
|
||||
signable.maxPriorityFeePerGas = GasInt(maxPriorityFee.truncate(uint64))
|
||||
elif gasPrice =? transaction.gasPrice:
|
||||
signable.txType = TxLegacy
|
||||
signable.gasPrice = GasInt(gasPrice.truncate(uint64))
|
||||
|
Loading…
x
Reference in New Issue
Block a user