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

Convert AsyncStep to suspending functions instead of Flows #215

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

prashanDYDX
Copy link
Contributor

@prashanDYDX prashanDYDX commented Aug 12, 2024

Since AsyncSteps are meant to be executed only once and we do not seem to use the Progress state for anything, it is far simpler / readable to express them as suspending functions.

This PR also adds some logging to AsyncStep and removes EthGetNonceStep (as discussed in t-clients)

Tested working with both MetaMask and Trust.

@prashanDYDX prashanDYDX force-pushed the prashan/convert-async-step-suspend branch from 884e09e to 0417b6d Compare August 12, 2024 23:40
@prashanDYDX prashanDYDX changed the title Prashan/convert async step suspend Convert AsyncStep to suspending functions instead of Flows Aug 12, 2024
@prashanDYDX prashanDYDX marked this pull request as ready for review August 13, 2024 00:25
@prashanDYDX prashanDYDX force-pushed the prashan/convert-async-step-suspend branch from 2c6a017 to 87b4cee Compare August 14, 2024 17:00
@prashanDYDX prashanDYDX merged commit 5ed1516 into develop Aug 14, 2024
3 checks passed
@prashanDYDX prashanDYDX deleted the prashan/convert-async-step-suspend branch August 14, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants