Skip to content

Commit

Permalink
token name (#700)
Browse files Browse the repository at this point in the history
Co-authored-by: Vic Genin <[email protected]>
  • Loading branch information
0xvgg and aie0 authored Sep 27, 2024
1 parent 3be7cde commit 8147b1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions solo-chains/node/tanssi-relay-service/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ pub fn dancelight_development_config(
mock_container_chains: Vec<ParaId>,
invulnerables: Vec<String>,
) -> Result<DancelightChainSpec, String> {
// Give your base currency a unit name and decimal places
let mut properties = sc_chain_spec::Properties::new();
properties.insert("tokenSymbol".into(), "STAR".into());
properties.insert("tokenDecimals".into(), 12.into());
properties.insert("ss58Format".into(), 42.into());
properties.insert("isEthereum".into(), false.into());

let container_chains: Vec<_> = container_chains
.iter()
.map(|x| {
Expand Down Expand Up @@ -202,6 +209,7 @@ pub fn dancelight_development_config(
invulnerables,
))
.with_protocol_id(DEFAULT_PROTOCOL_ID)
.with_properties(properties)
.build())
}

Expand Down

0 comments on commit 8147b1b

Please sign in to comment.