From 5f26fd55c9d010c00f830a4c83a480a54773858d Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Tue, 22 Feb 2022 03:51:37 -0500 Subject: [PATCH] Fixed eth_chainId response for Eip1193Bridge (#2711). --- packages/experimental/src.ts/eip1193-bridge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/experimental/src.ts/eip1193-bridge.ts b/packages/experimental/src.ts/eip1193-bridge.ts index 86e53350f4..cf57f6c262 100644 --- a/packages/experimental/src.ts/eip1193-bridge.ts +++ b/packages/experimental/src.ts/eip1193-bridge.ts @@ -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]);