Fix bug in EIP1193Bridge forwarding to the wrong method (#3166).

This commit is contained in:
Richard Moore 2022-07-13 21:55:56 -04:00
parent 6f57e8b156
commit 17676e9597

@ -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": {