Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

web3.accounts.wallet is not accessible with array index #5169

@nazarhussain

Description

@nazarhussain

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Following always return undefined.

web3.accounts.wallet[0];

Expected Behavior

It should return a wallet object instead. This is a commonly used approach to access the wallet, so we should avoid introducing a breaking change.

Steps to Reproduce

web3.accounts.wallet[0];

Web3.js Version

4.x

Environment

No response

Anything Else?

No response

Metadata

Metadata

Assignees

Labels

4.x4.0 relatedBugAddressing a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions