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

Commit 85dc0ee

Browse files
committed
outputFormatter added to 'requestAccounts' and related test updated
1 parent 5a08984 commit 85dc0ee

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/web3-eth/src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@ var Eth = function Eth() {
486486
new Method({
487487
name: 'requestAccounts',
488488
call: 'eth_requestAccounts',
489-
params: 0
489+
params: 0,
490+
outputFormatter: utils.toChecksumAddress
490491
}),
491492

492493
// subscriptions

test/eth.requestAccounts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var call = 'eth_requestAccounts';
55

66
var tests = [{
77
result: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855', '0x11f4d0a3c12e86b4b5f39b213f7e19d048276dae'],
8-
formattedResult: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855', '0x11f4d0a3c12e86b4b5f39b213f7e19d048276dae'],
8+
formattedResult: ['0x47D33b27Bb249a2DBab4C0612BF9CaF4C1950855', '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe'],
99
call: call
1010
},
1111
{

0 commit comments

Comments
 (0)