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