Skip to content

Feat/v10 remove provider#132

Open
tuna1207 wants to merge 15 commits intofeat/v10-hooksfrom
feat/v10-remove-provider
Open

Feat/v10 remove provider#132
tuna1207 wants to merge 15 commits intofeat/v10-hooksfrom
feat/v10-remove-provider

Conversation

@tuna1207
Copy link
Member

@tuna1207 tuna1207 commented Jan 8, 2026

Motivation and Context

Jira Link:

Description

How has this been tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code requires a db migration.

Note

Medium Risk
Changes how the demo initializes Web3Auth and performs RPC/signing, plus replaces Metro polyfill configuration; regressions are most likely in bundling/startup or runtime balance/address fetching, but scope is limited to the example app.

Overview
Updates the rn-bare-aggregate-verifier-example demo to use Web3Auth’s signer directly (removing the EthereumPrivateKeyProvider/chain config setup and provider-based ethers.BrowserProvider flow) and rewires account/balance/signing calls to operate on the stored Wallet signer.

Standardizes React Native app bootstrap and bundler setup by importing @web3auth/react-native-sdk/setup first in index.js and replacing custom Metro polyfill/module mappings with withWeb3Auth(defaultConfig) in metro.config.js.

Written by Cursor Bugbot for commit 191c535. This will update automatically on new commits. Configure here.

@tuna1207 tuna1207 requested a review from yashovardhan January 8, 2026 04:33
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

await web3auth.logout();

if (!web3auth.connected) {
setProvider(null);
Copy link

Choose a reason for hiding this comment

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

Missing await on getAddress() in getBalance

Medium Severity

In getBalance, signer.getAddress() is called without await, while getAccounts correctly uses await signer.getAddress(). The signer state is set via an as Wallet force-cast from web3auth.signer. If the actual runtime object is a generic Signer rather than a Wallet, getAddress() returns a Promise<string>, and passing that Promise to signer.provider?.getBalance(address) would fail to resolve the correct balance.

Additional Locations (1)

Fix in Cursor Fix in Web

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.

1 participant

Comments