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

feat: add toast message template for tx revert exception #149

Merged
merged 1 commit into from
May 19, 2023

Conversation

gratestas
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented May 19, 2023

Deploy Preview for truthpost ready!

Name Link
🔨 Latest commit 1415259
🔍 Latest deploy log https://app.netlify.com/sites/truthpost/deploys/6467a64eb801490008247165
😎 Deploy Preview https://deploy-preview-149--truthpost.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@gratestas gratestas linked an issue May 19, 2023 that may be closed by this pull request
@gratestas gratestas requested a review from 0xferit May 19, 2023 16:39
@sonarcloud
Copy link

sonarcloud bot commented May 19, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

return "Failed to execute transaction";
},
},
},
// add more message types here as needed
};

const TxRevertMessage = ({ errorMessage }) => {
Copy link
Member

@0xferit 0xferit May 19, 2023

Choose a reason for hiding this comment

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

Could we generalize this so it works for success messages as well? And do you think it would be good?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Certainly! There is a lot of room for improving this layer. I was going to address your suggestion in #128 issue

@0xferit 0xferit merged commit 11b08fd into develop May 19, 2023
7 checks passed
@0xferit 0xferit deleted the feat/toast-revert-messages branch May 19, 2023 16:56
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.

Handle tx revert messages in toasts
2 participants