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

eth.getAccounts doesn't return checksum addressed #5166

@nikoulai

Description

@nikoulai

Is there an existing issue for this?

First mentioned here: #5136 (comment)

  • I have searched the existing issues

Current Behavior

addresses are not returned as checksum:

await web3Eth.getAccounts();
//[
//  '0xf4ffff492596ac13fee6126846350433bf9a5021',
//  '0xdc6bad79dab7ea733098f66f6c6f9dd008da3258'
//]

Expected Behavior

should return:

[
'0xF4FfFF492596ac13fee6126846350433bF9a5021',
'0xdc6BAD79dAb7EA733098f66F6C6F9dd008Da3258'
]

Steps to Reproduce

import Web3Eth from "web3-eth";

let web3Eth = new Web3Eth("http://localhost:8545");
console.log(await web3Eth.getAccounts());

Web3.js Version

4.x

Environment

No response

Anything Else?

No response

Metadata

Metadata

Assignees

No one assigned

    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