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) + } }