I am using moralis web3 provider with walletconnect to make contract call. The transaction is signed in the trustwallet but it doesnât return success message to the browser thereby making it impossible to run then function
Code
const options = {
contractAddress: presale_address,
functionName: "buyTokens",
abi: presale_abi,
params: { bnbAmount: `${bnbprice}`},
msgValue: `${bnbprice}`,
from: account
};
await Moralis.executeFunction(options).then(status => {
state.setState({ alert_head: "Congratulations!", alert_body: "Token purchased and successfully sent to your wallet", isProcessing: false });
showAlert();
}
When I run this code, it will trigger wallet connect which takes me to trustwallet but after a succeful transaction it doesnât return response to the browser for the continuation of then(âŚ) function
Iâm stuck hereâŚ