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

Register all owned wallets on initialize #631

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vyorkin
Copy link
Contributor

@vyorkin vyorkin commented Oct 14, 2024

No description provided.

@vyorkin vyorkin self-assigned this Oct 14, 2024
Copy link

github-actions bot commented Oct 14, 2024

📦 build.zip [updated at Oct 18, 1:34:43 AM UTC]

params: { address, origin },
});
} catch (error) {
console.log('registerWallet error', error); // eslint-disable-line no-console
Copy link
Contributor

Choose a reason for hiding this comment

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

As I see, we will try register each wallet only once. So if something goes wrong, we will not try again.
May be we should not mark register process as complete in this case and try again next time?

Copy link
Contributor Author

@vyorkin vyorkin Oct 15, 2024

Choose a reason for hiding this comment

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

I'll update it to not set the flag if at least one wallet fails to register
edit: updated ✅

@vyorkin vyorkin marked this pull request as ready for review October 15, 2024 11:01
});
} catch (error) {
didFail = true;
console.log('registerWallet error', error); // eslint-disable-line no-console
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's do console.warn

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated to console.warn

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.

2 participants