axelarnetwork / support

Your source for support with the Axelar Network
3 stars 1 forks source link

When do interchain transactions get reverted? #85

Closed shivlim closed 4 months ago

shivlim commented 4 months ago

Iam trying to batch transactions for interchain and they are now getting reverted/refunded. https://axelarscan.io/gmp/0xc50605f56091c853153fc7eb5bbfed1b8512636d0e9e7ef754fec107b78d1ecf

When does this scenario happen?

Thanks

benjamin852 commented 4 months ago

Hey, looks like this tx went through. But to answer your question

A reverting tx could happen if for example there is invalid execution logic in the execute() function in a gmp tx on the destination chain

See here for example

This example is one of my failing txs from last week. In this case I am trying to send tokens back from a destination chain to my source chain contract. But I forgot to call approve() on the destination chain for the tokens to be sent back so the tx was reverting