Skip to content

Commit 61e63ff

Browse files
Aniket-Enggyann300
authored andcommitted
add chain id method
1 parent 0287bee commit 61e63ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libs/remix-simulator/src/methods/accounts.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ export class Web3Accounts {
7171
return {
7272
eth_accounts: this.eth_accounts.bind(this),
7373
eth_getBalance: this.eth_getBalance.bind(this),
74-
eth_sign: this.eth_sign.bind(this)
74+
eth_sign: this.eth_sign.bind(this),
75+
eth_chainId: this.eth_chainId.bind(this)
7576
}
7677
}
7778

@@ -103,4 +104,8 @@ export class Web3Accounts {
103104

104105
cb(null, data.signature)
105106
}
107+
108+
eth_chainId (_payload, cb) {
109+
return cb(null, 1337)
110+
}
106111
}

0 commit comments

Comments
 (0)