Add RevertOptions
as part of the gateway entrypoint functions
#299
Labels
v2
New smart contract version
RevertOptions
as part of the gateway entrypoint functions
#299
I think there were some confusion with the idea of
RevertContext
in previous discussion. The idea was to provide a structure to give instruction how to eventually handle revert.Though
RevertContext
is not a right name for this, we can call this structureRevertOptions
Add a
RevertOptions
that can specify the following data:revertAddress
is used to determine address to receive revertcallOnRevert
ifonRevert
hook should be calledabortAddress
address to receive funds if abortedChanges:
This is what is only needed in the smart contract, then the protocol orchestrate depending on the options.
Protocol uses revertAddress for abortAddress if not defined, and address of sender for revertAddress if not defined.
The text was updated successfully, but these errors were encountered: