From c631ca6a648de56b5a7622d26f2de82451c8335b Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 11 Dec 2024 12:00:10 +0100 Subject: [PATCH] Rename properties after a change in eth to be closer to the spec --- ethers/signers/wallet/signing.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethers/signers/wallet/signing.nim b/ethers/signers/wallet/signing.nim index 1ba79e6..16c7ad6 100644 --- a/ethers/signers/wallet/signing.nim +++ b/ethers/signers/wallet/signing.nim @@ -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))