-
Notifications
You must be signed in to change notification settings - Fork 52
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
change chainId from Int/UInt to BigInt type Ethereum plugin #747
Conversation
@@ -154,7 +154,7 @@ export class EthereumPlugin extends Plugin { | |||
const network = await provider.getNetwork(); | |||
return { | |||
name: network.name, | |||
chainId: network.chainId, | |||
chainId: network.chainId.toString(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't we serializing this automatically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be true if this were a wrapper, but in plugins the BigInt
type is an alias for string
. Here I'm changing the type from number
to string
.
…I tests to reflect changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch!
No description provided.