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

added 18 decimals to chain specs #99

Merged
merged 3 commits into from
Nov 10, 2020
Merged

Conversation

joelamouche
Copy link
Contributor

@joelamouche joelamouche commented Nov 9, 2020

If not specified in chain specs, decimals will default to 15.

We should set it to 18, the standard decimal number for ethereum.

solves #98

Copy link
Contributor

@JoshOrndorff JoshOrndorff left a comment

Choose a reason for hiding this comment

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

I agree with this change, but we should also add it in the Rust code, so it is places in the json by default when we generate new specs in the future.

It would need to go here https://github.com/PureStake/moonbeam/blob/master/node/standalone/src/chain_spec.rs#L91-L92 and the corresponding place in the parachain node.

Here is the struct you would need to add https://substrate.dev/rustdocs/v2.0.0/sc_service/type.Properties.html

@JoshOrndorff JoshOrndorff self-requested a review November 9, 2020 21:46
@JoshOrndorff JoshOrndorff merged commit 840ce22 into master Nov 10, 2020
@JoshOrndorff JoshOrndorff deleted the feature/add-decimals-to-specs branch November 10, 2020 01:58
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.

2 participants