Skip to content

fix: add missing await to signer.getAddress() in embedded-wallets examples - #3045

Open
leonschh wants to merge 2 commits into
MetaMask:mainfrom
leonschh:patch-1
Open

leonschh wants to merge 2 commits into
MetaMask:mainfrom
leonschh:patch-1

Conversation

@leonschh

@leonschh leonschh commented Aug 30, 2026

Copy link
Copy Markdown

Description

The signer.getAddress() method in ethers v6 returns a Promise<string>, but examples in embedded-wallets/connect-blockchain/_react-native-connect-blockchain/_evm-get-account.mdx were missing await.

Fix

Added: await before signer.getAddress()


Note

Low Risk
Documentation-only change to an embedded-wallets code sample; no runtime or auth logic is modified.

Overview
Updates the React Native EVM get account doc snippet so it matches ethers v6, where signer.getAddress() returns a Promise<string>.

The example now uses await signer.getAddress() (consistent with the existing await ethersProvider.getSigner() line) so copied code resolves the address instead of logging a Promise.

Reviewed by Cursor Bugbot for commit acc7ecf. Bugbot is set up for automated code reviews on this repo. Configure here.

…mples

## Problem

The `signer.getAddress()` method in ethers v6 returns a `Promise<string>`, but examples in `embedded-wallets/connect-blockchain/_react-native-connect-blockchain/_evm-get-account.mdx` and `_evm-get-balance.mdx` (line 11) were missing await.

## Fix

Added: `await` before `signer.getAddress()`
@leonschh
leonschh requested review from a team as code owners August 30, 2026 09:57
@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

@leonschh is attempting to deploy a commit to the Consensys Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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