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

Implemented an interpretation stub for failed transactions #2373

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

IamLRBA
Copy link

@IamLRBA IamLRBA commented Nov 7, 2024

In this adjusted code:

  • If an error occurs and showDegradedView is false, the code checks whether the error is custom. If not, it displays the message "Address failed to call method on address" in bold, red text.

  • The error message is wrapped in a div alongside other content like the TextAd and PageTitle, ensuring the page structure is consistent.

@IamLRBA
Copy link
Author

IamLRBA commented Nov 7, 2024

cc
@NikitaSavik
Please have a review at the PR and correct me where I may have gone wrong.
Thank you!

@IamLRBA
Copy link
Author

IamLRBA commented Nov 27, 2024

Hello @NikitaSavik, i have made this PR awaiting your approval.
Thanks!

@tom2drum
Copy link
Collaborator

tom2drum commented Dec 2, 2024

@IamLRBA Can you mark PR as "Ready for review" please?

@IamLRBA IamLRBA marked this pull request as ready for review December 2, 2024 20:52
secondRow={ titleSecondRow }
/>
<p style={{ color: 'red', fontWeight: 'bold', marginTop: '20px' }}>
Address failed to call method on address.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi! It's not exactly what the issue is about.
The idea was to implement a stub for transaction with a failed status, not an error state of the page.
Also, it has to be not the plain text, but addresses and method name from the transaction data.
And we use chakra-ui and variables for colors and paddings, so styling is not correct also

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.

3 participants