Skip to content

Commit

Permalink
fix: send trx transationId
Browse files Browse the repository at this point in the history
  • Loading branch information
kilmas committed Sep 24, 2020
1 parent f9e2177 commit 602d4a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/Wallet/SendCoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ class SendCoin extends React.Component {
const receipt = await tronWeb.trx.sendRawTransaction(signedTransaction)

if (receipt.result) {
const unconfirmedTx = await tronWeb.trx.getTransaction(id)
// const unconfirmedTx = await tronWeb.trx.getTransaction(id)
if (this.wallet.getBalance) {
this.wallet.getBalance()
}
this.setState({ transactionId: unconfirmedTx, sending: false })
this.setState({ transactionId: id, sending: false })
Toast.success(strings('transfer successfully'))
}
}, 10000)
Expand All @@ -213,6 +213,8 @@ class SendCoin extends React.Component {
browserUrl = `https://see.fo/transactions/${this.state.transactionId}`
} else if (coin.name === 'OKT') {
browserUrl = `https://www.oklink.com/okchain-test/tx/${this.state.transactionId}`
} else if (coin.name === 'TRX') {
browserUrl = `https://tronscan.io/#/transaction/${this.state.transactionId}`
}
if (browserUrl) {
goBrowser(this.props.navigation, browserUrl)
Expand Down

0 comments on commit 602d4a1

Please sign in to comment.