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