Closed Olanetsoft closed 10 months ago
So sorry you are getting this error. I think the missing step here is approval, you need to approve the amount to be spent spent by the contract before calling the sendToMany function.
Check this guide: https://axelar.network/blog/cross-chain-airdrop-dapp-tutorial scroll to the Implementing smart-contract write functionality section to see how the approval is done on the frontend before calling the sendToMany function.
Or you can approve directly on the aUSDC contract in Optimism Goerli https://goerli-optimism.etherscan.io/address/0x254d06f33bDc5b8ee05b2ea472107E300226659A#writeContract
New to Axelar. I'm trying to see if I can make Axelar send aUSDC from Optimism Goerli to Base Goerli. Attached below, I've written two contracts, OPSender.sol and BaseReceiver.sol, and deployed it on Optimism Goerli and Base Goerli, respectively. I tried calling the sendToMany function on OPSender to send the aUSDC from OP Goerli to Base Goerli, however I got the error Transaction mined but execution failed I am running everything on Remix IDE.
Here are the parameters I put into sendToMany
I put the tx into tenderly to try and debug and it gave me an arthimetic error (arthimetic overflow / underflow), however I'm not dealing with much math here.
Putting both contracts code on another message.
Here's the OPSender.sol source code. (Btw you can check out the past transactions here : https://goerli-optimism.etherscan.io/address/0x6Fc5AAf72c7288721C4b148C8b1A0E9f496b8020. Not verified, so i'm putting the code below) :
BaseReceiver.sol (https://goerli.basescan.org/address/0x291b1B6EB9DE79f0cb181bCF68Ae1ea70d9B8760. Not verified so im putting the contract code below):
any help would be appreciated, thanks!