From f8a8ea2842a2f11a46ea813c743b7e5b79f866ce Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Wed, 13 Sep 2023 19:10:03 +0100 Subject: [PATCH] fix: txid variable name --- lib/plugins/wallet/tron/base.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/plugins/wallet/tron/base.js b/lib/plugins/wallet/tron/base.js index 03dc4e46..d7cb50ed 100644 --- a/lib/plugins/wallet/tron/base.js +++ b/lib/plugins/wallet/tron/base.js @@ -83,13 +83,13 @@ const sendCoins = async (account, tx) => { } const transaction = response.transaction - const txId = transaction.txID - const transactionInfo = tronWeb.trx.getTransactionInfo(txId) + const txid = transaction.txID + const transactionInfo = tronWeb.trx.getTransactionInfo(txid) - if (!transactionInfo || !transactionInfo.fee) return { txId } + if (!transactionInfo || !transactionInfo.fee) return { txid } const fee = new BN(transactionInfo.fee).decimalPlaces(0) - return { txId, fee } + return { txid, fee } } const generateTrc20Tx = async (toAddress, wallet, amount, cryptoCode) => {