Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Improve error on ProcessInvalid #85

Merged
merged 2 commits into from
Mar 17, 2023

Conversation

mattdean-digicatapult
Copy link
Contributor

@mattdean-digicatapult mattdean-digicatapult commented Mar 17, 2023

Adds in handling so if a ProcessInvalid error is thrown in simpleNFT it will now return a 400 error.

Also fixes some tests broken in #84

@mattdean-digicatapult mattdean-digicatapult marked this pull request as ready for review March 17, 2023 14:27
Copy link
Contributor

@jonmattgray jonmattgray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const decoded = api.registry.findMetaError(error.asModule) 👌 the magic command

@mattdean-digicatapult mattdean-digicatapult merged commit 5db5d32 into main Mar 17, 2023
@mattdean-digicatapult mattdean-digicatapult deleted the bug/500-error-process-invalid branch March 17, 2023 14:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants