-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: onAbort #66
feat: onAbort #66
Conversation
@lumtis so the logic is:
|
On a second though, when you do a regular deposit from connected chain to ZetaChain and it reverts, we shouldn't be calling onAbort, right? |
Only if
Yes
Yes
I don't think there are particular workflow where a simple deposit would reverts, but in this case the fund would be sent back to the caller onAbort is always called (if abortAddress specified) as the last resort for everything |
To test this functionality use zeta-chain/example-contracts#230
The localnet script has already been updated with calls that should trigger You should see something like this:
|
This is not a breaking change, so I think once this is merged, we can ship it, even if this functionality is not available on testnet yet. Devs will have a chance to test it and share their feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Related: zeta-chain/protocol-contracts#450