Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for onAbort hook #63

Open
lumtis opened this issue Nov 26, 2024 · 0 comments
Open

Add support for onAbort hook #63

lumtis opened this issue Nov 26, 2024 · 0 comments

Comments

@lumtis
Copy link
Member

lumtis commented Nov 26, 2024

Will depend on zeta-chain/node#3211

Once onAbort is supported we should replicate the same behavior on the localnet:

  • If revert fails, the CCTX is aborted
    • If abortAddress == null nothing happen (in the protocol this is the current behavior where a admin message must be used for refund)
    • If callOnAbort == false and abortAddress == 0xaaa, value is refunded to 0xaaa on ZetaChain
    • If callOnAbort == true and abortAddress == 0xaaa, value is sent to 0xaaa and onAbort function is called on 0xaaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant