Companion for substrate#14188 (Add genesis config to Glutton pallet) (#2612)

* sudo + genesis for glutton

* ".git/.scripts/commands/fmt/fmt.sh"

* add AdminOrigin to glutton

* ".git/.scripts/commands/fmt/fmt.sh"

* update Cargo.lock

---------

Co-authored-by: command-bot <>
This commit is contained in:
Ignacio Palacios
2023-05-23 16:55:28 +02:00
committed by GitHub
parent bb307879ed
commit 1559fee4b3
6 changed files with 238 additions and 238 deletions
+7 -7
View File
@@ -27,7 +27,7 @@ pub use pallet_balances::AccountData;
pub use paste;
pub use sp_arithmetic::traits::Bounded;
pub use sp_core::storage::Storage;
pub use sp_io::TestExternalities;
pub use sp_io;
pub use sp_std::{cell::RefCell, collections::vec_deque::VecDeque, marker::PhantomData};
pub use sp_trie::StorageProof;
@@ -296,12 +296,12 @@ macro_rules! __impl_test_ext_for_relay_chain {
// impl
(@impl $name:ident, $genesis:expr, $on_init:expr, $ext_name:ident) => {
thread_local! {
pub static $ext_name: $crate::RefCell<$crate::TestExternalities>
pub static $ext_name: $crate::RefCell<$crate::sp_io::TestExternalities>
= $crate::RefCell::new(<$name>::build_new_ext($genesis));
}
impl TestExt for $name {
fn build_new_ext(storage: $crate::Storage) -> $crate::TestExternalities {
fn build_new_ext(storage: $crate::Storage) -> $crate::sp_io::TestExternalities {
let mut ext = sp_io::TestExternalities::new(storage);
ext.execute_with(|| {
#[allow(clippy::no_effect)]
@@ -312,7 +312,7 @@ macro_rules! __impl_test_ext_for_relay_chain {
ext
}
fn new_ext() -> $crate::TestExternalities {
fn new_ext() -> $crate::sp_io::TestExternalities {
<$name>::build_new_ext($genesis)
}
@@ -523,12 +523,12 @@ macro_rules! __impl_test_ext_for_parachain {
// impl
(@impl $name:ident, $genesis:expr, $on_init:expr, $ext_name:ident) => {
thread_local! {
pub static $ext_name: $crate::RefCell<$crate::TestExternalities>
pub static $ext_name: $crate::RefCell<$crate::sp_io::TestExternalities>
= $crate::RefCell::new(<$name>::build_new_ext($genesis));
}
impl TestExt for $name {
fn build_new_ext(storage: $crate::Storage) -> $crate::TestExternalities {
fn build_new_ext(storage: $crate::Storage) -> $crate::sp_io::TestExternalities {
let mut ext = sp_io::TestExternalities::new(storage);
ext.execute_with(|| {
#[allow(clippy::no_effect)]
@@ -539,7 +539,7 @@ macro_rules! __impl_test_ext_for_parachain {
ext
}
fn new_ext() -> $crate::TestExternalities {
fn new_ext() -> $crate::sp_io::TestExternalities {
<$name>::build_new_ext($genesis)
}