Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Explicit to use XCM v4 as a storage key
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Sep 2, 2024
1 parent 664e3dc commit 5ef32c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bridges/snowbridge/pallets/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,13 @@ pub mod pallet {

#[pallet::storage]
#[pallet::getter(fn tokens)]
pub type Tokens<T: Config> = StorageMap<_, Twox64Concat, TokenId, Location, OptionQuery>;
pub type Tokens<T: Config> =
StorageMap<_, Twox64Concat, TokenId, xcm::v4::Location, OptionQuery>;

#[pallet::storage]
#[pallet::getter(fn location_tokens)]
pub type LocationToToken<T: Config> =
StorageMap<_, Twox64Concat, Location, TokenId, OptionQuery>;
StorageMap<_, Twox64Concat, xcm::v4::Location, TokenId, OptionQuery>;

#[pallet::genesis_config]
#[derive(frame_support::DefaultNoBound)]
Expand Down

0 comments on commit 5ef32c8

Please sign in to comment.