Skip to content

Commit

Permalink
Change token decimals to 18 (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic authored Mar 27, 2023
1 parent f06bc17 commit a855323
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion solidity-fixtures
6 changes: 5 additions & 1 deletion standalone/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ fn webb_session_keys(
}

pub fn webb_development_config() -> Result<ChainSpec, String> {
let mut properties = sc_chain_spec::Properties::new();
properties.insert("tokenSymbol".into(), "Unit".into());
properties.insert("tokenDecimals".into(), 18u32.into());
properties.insert("ss58Format".into(), 42.into());
Ok(ChainSpec::from_genesis(
// Name
"Development",
Expand Down Expand Up @@ -126,7 +130,7 @@ pub fn webb_development_config() -> Result<ChainSpec, String> {
// Fork ID
None,
// Properties
None,
Some(properties),
Default::default(),
))
}
Expand Down
2 changes: 1 addition & 1 deletion standalone/runtime/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub mod currency {
/// The existential deposit. Set to 1/10 of its parent Relay Chain (v9020).
pub const EXISTENTIAL_DEPOSIT: Balance = CENTS / 10;

pub const UNITS: Balance = 1_000_000_000_000;
pub const UNITS: Balance = 1_000_000_000_000_000_000;
pub const KUNITS: Balance = UNITS * 1000;
pub const DOLLARS: Balance = UNITS;
pub const CENTS: Balance = UNITS / 30_000;
Expand Down

0 comments on commit a855323

Please sign in to comment.