fix: txid variable name
This commit is contained in:
parent
8c66c67a04
commit
f8a8ea2842
1 changed files with 4 additions and 4 deletions
|
|
@ -83,13 +83,13 @@ const sendCoins = async (account, tx) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const transaction = response.transaction
|
const transaction = response.transaction
|
||||||
const txId = transaction.txID
|
const txid = transaction.txID
|
||||||
const transactionInfo = tronWeb.trx.getTransactionInfo(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)
|
const fee = new BN(transactionInfo.fee).decimalPlaces(0)
|
||||||
return { txId, fee }
|
return { txid, fee }
|
||||||
}
|
}
|
||||||
|
|
||||||
const generateTrc20Tx = async (toAddress, wallet, amount, cryptoCode) => {
|
const generateTrc20Tx = async (toAddress, wallet, amount, cryptoCode) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue