Skip to content
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

Add error to FailedProposalExecution response #749

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

ismellike
Copy link
Contributor

Minimal information is shown when a proposal execution fails, and this could give users a better clue of what went wrong. It should probably be used in all reply_on_error handles.

Minimal information is shown when a proposal execution fails, and this could give users a better clue of what went wrong.
It should probably be used in all reply_on_error handles.
Copy link
Member

@JakeHartnell JakeHartnell left a comment

Choose a reason for hiding this comment

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

Nice and simple! I like it.

Copy link
Member

@JakeHartnell JakeHartnell left a comment

Choose a reason for hiding this comment

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

Actually, can we not use unwrap_err? Fine if there is some default, but in general, we try not to use unwrap in smart contracts.

Copy link
Member

@JakeHartnell JakeHartnell left a comment

Choose a reason for hiding this comment

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

THANKS!

@JakeHartnell JakeHartnell merged commit 7776858 into DA0-DA0:development Sep 15, 2023
3 checks passed
@ismellike ismellike deleted the log-reply-errors branch September 16, 2023 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants