fix: txid variable name

This commit is contained in:
Rafael Taranto 2023-09-13 19:10:03 +01:00
parent 8c66c67a04
commit f8a8ea2842

View file

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