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

change chainId from Int/UInt to BigInt type Ethereum plugin #747

Merged
merged 5 commits into from
Mar 22, 2022

Conversation

krisbitney
Copy link
Contributor

No description provided.

@@ -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(),
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@krisbitney krisbitney changed the title change chainId to BigInt in Network type of Ethereum plugin change chainId from Int/UInt to BigInt type Ethereum plugin Mar 15, 2022
dOrgJelli
dOrgJelli previously approved these changes Mar 22, 2022
Copy link
Contributor

@dOrgJelli dOrgJelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

@dOrgJelli dOrgJelli merged commit 77430d3 into prealpha-dev Mar 22, 2022
@dOrgJelli dOrgJelli deleted the eth-plugin-chainid-type branch February 2, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants