You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using tronAdapter with OKX Wallet. There's something really strange happening. In the mobile OKX DApp browser, when I call await sendRawTransaction, the code does not proceed to the next line. I don't know the reason for this.
When I call sendRawTransaction, it transitions to the contract interaction screen of the OKX Wallet, but even after accepting, the code does not move to the next line. This code works fine in the PC web extension.
// @ts-expect-error:test
const result = await tronweb.trx.sendRawTransaction(signedTx)
//???????????????????????????????????????????????????????????????????????????????????????
//It does not proceed past this line.
I'm using tronAdapter with OKX Wallet. There's something really strange happening. In the mobile OKX DApp browser, when I call await sendRawTransaction, the code does not proceed to the next line. I don't know the reason for this.
When I call sendRawTransaction, it transitions to the contract interaction screen of the OKX Wallet, but even after accepting, the code does not move to the next line. This code works fine in the PC web extension.
`const functionSelector = 'transfer(address,uint256)';
const parameter = [{type: 'address', value: to}, {type: 'uint256', value: amount}]//to Address
// @ts-expect-error:test
const tx = await tronweb.transactionBuilder.triggerSmartContract('-------', functionSelector, {}, parameter);//Contract Address
const signedTx = await tronweb.trx.sign(tx.transaction);
//???????????????????????????????????????????????????????????????????????????????????????
return result.transaction.txID;`
The text was updated successfully, but these errors were encountered: