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

feat: Set the provider's network. #18

Merged
merged 10 commits into from
Jan 10, 2025
Merged

Conversation

tfrg
Copy link
Contributor

@tfrg tfrg commented Dec 31, 2024

What type of PR is this?

  • feature

What this PR does:

  • Set up the provider's network data.
  • Implement onChangeNetwork().
  • Implement addNetwork().
  • Implements switchNetwork().
  • Implements setNetwork().

Copy link
Member

@jinoosss jinoosss left a comment

Choose a reason for hiding this comment

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

Please check out some of the comments.

Comment on lines 134 to 137
const connected = this.connectProvider();
if (!connected) {
return makeResponseMessage(WalletResponseFailureType.NOT_CONNECTED);
}
Copy link
Member

Choose a reason for hiding this comment

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

Do we need connect?
What do you think?

Copy link
Member

@jinoosss jinoosss left a comment

Choose a reason for hiding this comment

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

LGTM 👍
I left one minor comment.

@jinoosss jinoosss merged commit 0555995 into onbloc:main Jan 10, 2025
3 checks passed
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