fix: chain spec corrections - tokenDecimals 18->12, ss58Format, para_id

This commit is contained in:
2026-02-11 04:52:28 +03:00
parent cf481e748b
commit 60fec915de
3 changed files with 5 additions and 3 deletions
@@ -132,10 +132,11 @@ pub fn asset_hub_pezkuwichain_genesis_config() -> GenericChainSpec {
let mut properties = pezsc_chain_spec::Properties::new();
properties.insert("tokenSymbol".into(), "TYR".into());
properties.insert("tokenDecimals".into(), 12.into());
properties.insert("ss58Format".into(), 42.into());
GenericChainSpec::builder(
asset_hub_pezkuwichain_runtime::WASM_BINARY
.expect("WASM binary was not built, please build it!"),
Extensions::new_with_relay_chain("pezkuwichain-mainnet".into()),
Extensions::new("pezkuwichain-mainnet".into(), 1000),
)
.with_name("Pezkuwichain Asset Hub")
.with_id("asset-hub-pezkuwichain")
@@ -140,7 +140,7 @@ pub mod pezkuwichain {
GenericChainSpec::builder(
people_pezkuwichain_runtime::WASM_BINARY
.expect("WASM binary was not built, please build it!"),
Extensions::new_with_relay_chain("pezkuwichain-mainnet".to_string()),
Extensions::new("pezkuwichain-mainnet".to_string(), 1004),
)
.with_name("Pezkuwichain People")
.with_id(super::ensure_id(PEOPLE_PEZKUWICHAIN_GENESIS).expect("invalid id"))
+2 -1
View File
@@ -164,10 +164,11 @@ pub fn versi_chain_spec_properties() -> serde_json::map::Map<String, serde_json:
}
/// PezkuwiChain mainnet chain spec properties (HEZ token)
/// Note: tokenDecimals must be 12 to match UNITS = 10^12 in runtime constants
pub fn pezkuwichain_chain_spec_properties() -> serde_json::map::Map<String, serde_json::Value> {
serde_json::json!({
"ss58Format": 42,
"tokenDecimals": 18,
"tokenDecimals": 12,
"tokenSymbol": "HEZ",
})
.as_object()