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

explicit errors if gasless owner update fails #1262

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

efstajas
Copy link
Contributor

@efstajas efstajas commented Oct 14, 2024

Currently, if the gasless owner update in the project claim flow fails to kick off (e.g. Gelato Relay down) or the task fails to conclude (e.g. we ran out of balance to sponsor gas with), the user is just left sitting on the "Waiting for verification to finalize..." screen while the app polls the API in anticipation of the owner updating. Which of course will never happen in those cases. This adds explicit checks for a successful gasless owner update call, and checks the task state on Gelato for failures. In both cases, the user will see "friendly" errors asking for them to either try again or reach out to us on Discord.

Copy link

railway-app bot commented Oct 14, 2024

🚅 Previously deployed to Railway in the Drips App project. Environment has been deleted.

Copy link
Collaborator

@mhgbrown mhgbrown left a comment

Choose a reason for hiding this comment

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

Just asked a little question about assert

@@ -46,6 +47,38 @@
}
`;

assert($context.gaslessOwnerUpdateTaskId, 'Gasless owner update task ID is missing');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does assert eventually produce some sort of global error display for the user?

Copy link
Contributor Author

@efstajas efstajas Oct 15, 2024

Choose a reason for hiding this comment

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

Yep, any error thrown within the context of a Stepper will be caught by the stepper component and trigger an Error step that just stringifies the error and shows it to the user. Doesn't matter if that error came from assert or elsewhere.

@efstajas efstajas merged commit 4a3bd19 into main Oct 15, 2024
4 of 5 checks passed
@efstajas efstajas deleted the jason/throw-if-gasless-call-fails branch October 15, 2024 10:49
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