Skip to content

Commit

Permalink
Add sudo key (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier authored Dec 6, 2022
1 parent 14b7e7b commit 509bf6a
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 24 deletions.
40 changes: 23 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ substrate-build-script-utils = { git = "https://github.com/paritytech/substrate"

[dependencies]
# crates.io
array-bytes = { version = "4.2" }
array-bytes = { version = "6.0" }
clap = { version = "3.2", features = ["derive"] }
codec = { package = "parity-scale-codec", version = "3.2" }
futures = { version = "0.3" }
Expand Down
2 changes: 1 addition & 1 deletion node/src/chain_spec/crab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ fn testnet_genesis(
treasury: Default::default(),

// Utility stuff.
sudo: Default::default(),
sudo: SudoConfig { key: Some(array_bytes::hex_n_into_unchecked(SUDO)) },
vesting: Default::default(),

// XCM stuff.
Expand Down
2 changes: 1 addition & 1 deletion node/src/chain_spec/darwinia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ fn testnet_genesis(
treasury: Default::default(),

// Utility stuff.
sudo: Default::default(),
sudo: SudoConfig { key: Some(array_bytes::hex_n_into_unchecked(SUDO)) },
vesting: Default::default(),

// XCM stuff.
Expand Down
1 change: 1 addition & 0 deletions node/src/chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const CHARLETH: &str = "0x798d4Ba9baf0064Ec19eB4F0a1a45785ae9D6DFc";
const DOROTHY: &str = "0x773539d4Ac0e786233D90A233654ccEE26a613D9";
const ETHAN: &str = "0xFf64d3F6efE2317EE2807d223a0Bdc4c0c49dfDB";
const FAITH: &str = "0xC0F0f4ab324C46e55D02D0033343B4Be8A55532d";
const SUDO: &str = "0x2748def2f9c3cfbbb963002935bc6d2e1c36ce2e";

/// The default XCM version to set in genesis config.
const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION;
Expand Down
2 changes: 1 addition & 1 deletion node/src/chain_spec/pangolin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ fn testnet_genesis(
treasury: Default::default(),

// Utility stuff.
sudo: Default::default(),
sudo: SudoConfig { key: Some(array_bytes::hex_n_into_unchecked(SUDO)) },
vesting: Default::default(),

// XCM stuff.
Expand Down
2 changes: 1 addition & 1 deletion runtime/crab/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ scale-info = { version = "2.3", default-features = false, features = ["de
smallvec = { version = "1.10" }
static_assertions = { version = "1.1" }
# crates.io optional
array-bytes = { version = "4.1", optional = true }
array-bytes = { version = "6.0", optional = true }

# cumulus
cumulus-pallet-aura-ext = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.30" }
Expand Down
2 changes: 1 addition & 1 deletion runtime/darwinia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ scale-info = { version = "2.3", default-features = false, features = ["de
smallvec = { version = "1.10" }
static_assertions = { version = "1.1" }
# crates.io optional
array-bytes = { version = "4.1", optional = true }
array-bytes = { version = "6.0", optional = true }

# cumulus
cumulus-pallet-aura-ext = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.30" }
Expand Down
2 changes: 1 addition & 1 deletion runtime/pangolin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ scale-info = { version = "2.3", default-features = false, features = ["de
smallvec = { version = "1.10" }
static_assertions = { version = "1.1" }
# crates.io optional
array-bytes = { version = "4.1", optional = true }
array-bytes = { version = "6.0", optional = true }

# cumulus
cumulus-pallet-aura-ext = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.30" }
Expand Down

0 comments on commit 509bf6a

Please sign in to comment.