-
Notifications
You must be signed in to change notification settings - Fork 380
api-contracts: handle foreign events gracefully #5803
Copy link
Copy link
Open
Labels
Help WantedTasks open for external contributions, suitable for independent or collaborative work.Tasks open for external contributions, suitable for independent or collaborative work.P3 - LowNon-essential improvements or minor fixes. Can be scheduled flexibly as time permits.Non-essential improvements or minor fixes. Can be scheduled flexibly as time permits.
Metadata
Metadata
Assignees
Labels
Help WantedTasks open for external contributions, suitable for independent or collaborative work.Tasks open for external contributions, suitable for independent or collaborative work.P3 - LowNon-essential improvements or minor fixes. Can be scheduled flexibly as time permits.Non-essential improvements or minor fixes. Can be scheduled flexibly as time permits.
Type
Projects
Status
P3 - Low
During the adaption of the event decoding for smart contract for ink! v5, #5791, it became clear that the prior and current implementation can't handle all circumstances gracefully.
The current implementation supports:
What could be improved:
Another usecase for this feature would be in handling foreign events. Foreign events are events emitted by the called contract but are defined in a different contract which was invoked by the called contract. For what I know this case of decoding events from a contract which ABI we don't have is not handled and will result in errors being thrown.
More information about this behavior you can find here: