From 61e63ffcddd77e8c66ecf73e09050fa5a1a24775 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Fri, 2 Feb 2024 15:23:17 +0530 Subject: [PATCH] add chain id method --- libs/remix-simulator/src/methods/accounts.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/remix-simulator/src/methods/accounts.ts b/libs/remix-simulator/src/methods/accounts.ts index 00b8701da3..49be664d19 100644 --- a/libs/remix-simulator/src/methods/accounts.ts +++ b/libs/remix-simulator/src/methods/accounts.ts @@ -71,7 +71,8 @@ export class Web3Accounts { return { eth_accounts: this.eth_accounts.bind(this), eth_getBalance: this.eth_getBalance.bind(this), - eth_sign: this.eth_sign.bind(this) + eth_sign: this.eth_sign.bind(this), + eth_chainId: this.eth_chainId.bind(this) } } @@ -103,4 +104,8 @@ export class Web3Accounts { cb(null, data.signature) } + + eth_chainId (_payload, cb) { + return cb(null, 1337) + } }