add chain id method

pull/5370/head
aniket-engg 10 months ago committed by yann300
parent 44a673ab63
commit 9b182c1bd5
  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