From dcbe19abdf95f09d8807b77379075f08f4eb5dfb Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 13 Jul 2022 21:55:56 -0400 Subject: [PATCH] Fix bug in EIP1193Bridge forwarding to the wrong method (#3166). --- 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 cf57f6c262..86d6213496 100644 --- a/packages/experimental/src.ts/eip1193-bridge.ts +++ b/packages/experimental/src.ts/eip1193-bridge.ts @@ -78,7 +78,7 @@ export class Eip1193Bridge extends EventEmitter { return ethers.utils.hexValue(result.transactions.length); } case "eth_getCode": { - const result = await this.provider.getBlock(params[0]); + const result = await this.provider.getCode(params[0], params[1]); return result; } case "eth_sendRawTransaction": {