Skip to content

Commit

Permalink
fix : remove custom prefix for testnet (#406)
Browse files Browse the repository at this point in the history
* update staking and token supply

* update staking params

* fix distribution

* fix distribution

* fix : remove custom prefix for testnet
  • Loading branch information
1xstj authored Jan 8, 2024
1 parent 4c87b0e commit e4c072c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions node/src/chainspec/testnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub fn local_testnet_config(chain_id: u64) -> Result<ChainSpec, String> {
let mut properties = sc_chain_spec::Properties::new();
properties.insert("tokenSymbol".into(), "tTNT".into());
properties.insert("tokenDecimals".into(), 18u32.into());
properties.insert("ss58Format".into(), tangle_primitives::TESTNET_SS58_PREFIX.into());
properties.insert("ss58Format".into(), 42.into());

Ok(ChainSpec::from_genesis(
// Name
Expand Down Expand Up @@ -151,7 +151,7 @@ pub fn tangle_testnet_config(chain_id: u64) -> Result<ChainSpec, String> {
let mut properties = sc_chain_spec::Properties::new();
properties.insert("tokenSymbol".into(), "tTNT".into());
properties.insert("tokenDecimals".into(), 18u32.into());
properties.insert("ss58Format".into(), tangle_primitives::TESTNET_SS58_PREFIX.into());
properties.insert("ss58Format".into(), 42.into());

Ok(ChainSpec::from_genesis(
"Tangle Testnet",
Expand Down
2 changes: 1 addition & 1 deletion runtime/testnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ parameter_types! {
::with_sensible_defaults(MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO);
pub BlockLength: frame_system::limits::BlockLength = frame_system::limits::BlockLength
::max_with_normal_ratio(MAXIMUM_BLOCK_LENGTH, NORMAL_DISPATCH_RATIO);
pub const SS58Prefix: u16 = tangle_primitives::TESTNET_SS58_PREFIX;
pub const SS58Prefix: u8 = 42;
}

/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know
Expand Down

0 comments on commit e4c072c

Please sign in to comment.