-
Notifications
You must be signed in to change notification settings - Fork 506
Open
Description
Current behaviour
The instantiate entrypoint is called before the contract info is stored.
This results in an error occuring if the contract tries to query that info inside the instantiate entrypoint.
Expected behaviour
We should probably call the entrypoint after saving the info. That should make the data available to query inside the instantiate entrypoint. To me, it doesn't look like there is any specific reason for the current order and it is confusing and a somewhat inconsistent1.
We should just make sure that it gets reverted if the instantiate entrypoint errors. I think that should be the case automatically when returning an error, but a test for that would be good.
Footnotes
Buckram123
Metadata
Metadata
Assignees
Labels
No labels