Yes. I have tried to execute it like this way. Here is my code:
await Moralis.start({ moralisSecret, serverUrl, appId });
await Moralis.enableWeb3({
chainId: 0x61,
privateKey:
âprivate_keyâ,
});
const options = {
contractAddress: NFTAuctionAddess,
functionName: âmakeBidâ,
abi: ABI,
params: {
_nftContractAddress: ERC721Address,
_tokenId: params._tokenId,
_erc20Token: ERC20Address,
_tokenAmount: body._tokenAmount,
}
};
const transaction = await Moralis.executeFunction(options);
const result = await transaction.wait();
But only this function is not working. I have tried to run this function in remix IDE. But it is showing âERC20: insufficient allowanceâ. Please help me with this.