Fixed eth_chainId response for Eip1193Bridge (#2711).
This commit is contained in:
parent
c562150d26
commit
5f26fd55c9
@ -59,7 +59,7 @@ export class Eip1193Bridge extends EventEmitter {
|
|||||||
}
|
}
|
||||||
case "eth_chainId": {
|
case "eth_chainId": {
|
||||||
const result = await this.provider.getNetwork();
|
const result = await this.provider.getNetwork();
|
||||||
return result.chainId;
|
return ethers.utils.hexValue(result.chainId);
|
||||||
}
|
}
|
||||||
case "eth_getBalance": {
|
case "eth_getBalance": {
|
||||||
const result = await this.provider.getBalance(params[0], params[1]);
|
const result = await this.provider.getBalance(params[0], params[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user