Skip to content

Commit

Permalink
Fix bug in EIP1193Bridge forwarding to the wrong method (#3166).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 14, 2022
1 parent 6f57e8b commit 17676e9
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 @@ -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": {
Expand Down

0 comments on commit 17676e9

Please sign in to comment.