-
Notifications
You must be signed in to change notification settings - Fork 360
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
use wallet service's getCallsStatus rpc #755
Conversation
KannuSingh
commented
Oct 26, 2024
- use wallet_getCallsStatus from wallet service in smart-sessions-demo instead of directly interacting with pimlico infra.
- add support for wallet_getCallsStatus rpc on sample wallet wallet service.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
7 Skipped Deployments
|
Added max retry attempt of 3 on api call failure, bc some rpc calls(wallet_getCallsStatus) seems very flaky.
throw error; // If max retries reached, throw the error | ||
} | ||
console.warn(`Attempt ${attempt} failed. Retrying...`); // Log the retry attempt | ||
await new Promise((resolve) => setTimeout(resolve, 1000)); // Wait before retrying (optional delay) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have timeout duration in a const?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we implement this in the wallet service in the react-wallet? We don't really have to maintain that anymore since we have a prod one