Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: return eth_chainId as hexadecimal #2711

Closed
wants to merge 1 commit into from
Closed

Conversation

zzmp
Copy link

@zzmp zzmp commented Feb 17, 2022

An EIP1193 must return chainId as a hexadecimal (spec).

Updates eth_chainId calls on the Eip1193Bridge to convert the decimal chainId returned by this.provider.getNetwork() to a hexadecimal.

[An EIP1193 _must_ return chainId as a hexadecimal.](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md#:~:text=chainId%20MUST%20specify%20the%20integer%20ID%20of%20the%20connected%20chain%20as%20a%20hexadecimal%20string%2C%20per%20the%20eth_chainId%20Ethereum%20RPC%20method.)
Updates `eth_chainId` calls on the `Eip1193Bridge` to convert the decimal chainId returned by `this.provider.getNetwork()` to a hexadecimal.
@ricmoo ricmoo added bug Verified to be an issue. minor-bump Planned for the next minor version bump. on-deck This Enhancement or Bug is currently being worked on. labels Feb 19, 2022
@ricmoo
Copy link
Member

ricmoo commented Mar 10, 2022

This has been fixed in v5.6.

Let me know if you still have any issues.

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified to be an issue. fixed/complete This Bug is fixed or Enhancement is complete and published.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants