Skip to content

Commit 17676e9

Browse files
committed
Fix bug in EIP1193Bridge forwarding to the wrong method (#3166).
1 parent 6f57e8b commit 17676e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/experimental/src.ts/eip1193-bridge.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class Eip1193Bridge extends EventEmitter {
7878
return ethers.utils.hexValue(result.transactions.length);
7979
}
8080
case "eth_getCode": {
81-
const result = await this.provider.getBlock(params[0]);
81+
const result = await this.provider.getCode(params[0], params[1]);
8282
return result;
8383
}
8484
case "eth_sendRawTransaction": {

0 commit comments

Comments
 (0)