add chain id method

pull/4511/head
aniket-engg 10 months ago committed by yann300
parent 0287beef0d
commit 61e63ffcdd
  1. 7
      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)
}
}

Loading…
Cancel
Save