Skip to content

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

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

fix: add missing await to signer.getAddress() in embedded-wallets examples#3045
leonschh wants to merge 1 commit 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 example snippet; no runtime or product code paths.

Overview
Updates the React Native embedded-wallet get account snippet in _evm-get-account.mdx so it matches ethers v6: signer.getAddress() is now called with await, since it returns a Promise<string> (the file already awaited getSigner()).

Reviewed by Cursor Bugbot for commit e3890e3. 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.

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