Skip to content

Commit

Permalink
fix(firegn-assets): default genesis config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshiposha committed Jun 6, 2024
1 parent aba2919 commit 9a73a32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions pallets/foreign-assets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ sp-std = { workspace = true }
staging-xcm = { workspace = true }
staging-xcm-executor = { workspace = true }
up-data-structs = { workspace = true }
derivative = { workspace = true }

[features]
default = ["std"]
Expand Down
4 changes: 3 additions & 1 deletion pallets/foreign-assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

use core::ops::Deref;

use derivative::Derivative;
use frame_support::{
dispatch::DispatchResult, pallet_prelude::*, storage_alias, traits::EnsureOrigin, PalletId,
};
Expand Down Expand Up @@ -246,7 +247,8 @@ pub mod module {
}

#[pallet::genesis_config]
#[derive(Default)]
#[derive(Derivative)]
#[derivative(Default(bound = ""))]
pub struct GenesisConfig<T: Config>(PhantomData<T>);

#[pallet::genesis_build]
Expand Down

0 comments on commit 9a73a32

Please sign in to comment.