mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 19:51:05 +00:00
polkadot-like testnets should be 10 decimal places (#5369)
* polkadot is 10 decimal places * cargo fmt * Update node/service/src/chain_spec.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * name change * update test also Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -1085,6 +1085,16 @@ fn rococo_staging_testnet_config_genesis(wasm_binary: &[u8]) -> rococo_runtime::
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the properties for the [`PolkadotChainSpec`].
|
||||
pub fn polkadot_chain_spec_properties() -> serde_json::map::Map<String, serde_json::Value> {
|
||||
serde_json::json!({
|
||||
"tokenDecimals": 10,
|
||||
})
|
||||
.as_object()
|
||||
.expect("Map given; qed")
|
||||
.clone()
|
||||
}
|
||||
|
||||
/// Polkadot staging testnet config.
|
||||
#[cfg(feature = "polkadot-native")]
|
||||
pub fn polkadot_staging_testnet_config() -> Result<PolkadotChainSpec, String> {
|
||||
@@ -1103,7 +1113,7 @@ pub fn polkadot_staging_testnet_config() -> Result<PolkadotChainSpec, String> {
|
||||
),
|
||||
Some(DEFAULT_PROTOCOL_ID),
|
||||
None,
|
||||
None,
|
||||
Some(polkadot_chain_spec_properties()),
|
||||
Default::default(),
|
||||
))
|
||||
}
|
||||
@@ -1653,7 +1663,7 @@ pub fn polkadot_development_config() -> Result<PolkadotChainSpec, String> {
|
||||
None,
|
||||
Some(DEFAULT_PROTOCOL_ID),
|
||||
None,
|
||||
None,
|
||||
Some(polkadot_chain_spec_properties()),
|
||||
Default::default(),
|
||||
))
|
||||
}
|
||||
@@ -1793,7 +1803,7 @@ pub fn polkadot_local_testnet_config() -> Result<PolkadotChainSpec, String> {
|
||||
None,
|
||||
Some(DEFAULT_PROTOCOL_ID),
|
||||
None,
|
||||
None,
|
||||
Some(polkadot_chain_spec_properties()),
|
||||
Default::default(),
|
||||
))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user