Fixed eth_chainId response for Eip1193Bridge (#2711).

This commit is contained in:
Richard Moore 2022-02-22 03:51:37 -05:00
parent c562150d26
commit 5f26fd55c9

@ -59,7 +59,7 @@ export class Eip1193Bridge extends EventEmitter {
} }
case "eth_chainId": { case "eth_chainId": {
const result = await this.provider.getNetwork(); const result = await this.provider.getNetwork();
return result.chainId; return ethers.utils.hexValue(result.chainId);
} }
case "eth_getBalance": { case "eth_getBalance": {
const result = await this.provider.getBalance(params[0], params[1]); const result = await this.provider.getBalance(params[0], params[1]);