Skip to content

Commit

Permalink
Fix bug in EIP1193Bridge forwarding to the wrong method (ethers-io#3166
Browse files Browse the repository at this point in the history
…).
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent afa72a7 commit dcbe19a
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 dcbe19a

Please sign in to comment.