Rename properties after a change in eth to be closer to the spec

This commit is contained in:
Arnaud 2024-12-11 12:00:10 +01:00
parent 84cda04094
commit c631ca6a64
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -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))