Skip to content

Commit

Permalink
Fixed eth_chainId response for Eip1193Bridge (ethers-io#2711).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 49f7269 commit af95630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/experimental/src.ts/eip1193-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class Eip1193Bridge extends EventEmitter {
}
case "eth_chainId": {
const result = await this.provider.getNetwork();
return result.chainId;
return ethers.utils.hexValue(result.chainId);
}
case "eth_getBalance": {
const result = await this.provider.getBalance(params[0], params[1]);
Expand Down

0 comments on commit af95630

Please sign in to comment.