Skip to content

Commit

Permalink
fix: avoid without storage info macro (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrun5 authored May 9, 2023
1 parent 96e4fae commit abd6db1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion access-segregator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ pub mod pallet {
/// (pallet_index, extrinsic_name) => account
#[pallet::storage]
#[pallet::getter(fn extrinsic_access)]
#[pallet::unbounded]
pub type ExtrinsicAccess<T: Config> = StorageMap<_, Twox64Concat, (u8, Vec<u8>), T::AccountId>;

#[pallet::pallet]
#[pallet::storage_version(STORAGE_VERSION)]
#[pallet::without_storage_info]
pub struct Pallet<T>(_);

#[pallet::config]
Expand Down
1 change: 0 additions & 1 deletion basic-fee-handler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pub mod pallet {

#[pallet::pallet]
#[pallet::storage_version(STORAGE_VERSION)]
#[pallet::without_storage_info]
pub struct Pallet<T>(_);

#[pallet::config]
Expand Down
1 change: 0 additions & 1 deletion bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ pub mod pallet {

#[pallet::pallet]
#[pallet::storage_version(STORAGE_VERSION)]
#[pallet::without_storage_info]
pub struct Pallet<T>(_);

#[pallet::config]
Expand Down
3 changes: 1 addition & 2 deletions fee-handler-router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub mod pallet {
use sygma_traits::{DomainID, FeeHandler};
use xcm::latest::AssetId;

#[derive(PartialEq, Eq, Clone, Encode, Decode, TypeInfo, RuntimeDebug)]
#[derive(PartialEq, Eq, Clone, Encode, Decode, TypeInfo, RuntimeDebug, MaxEncodedLen)]
pub enum FeeHandlerType {
BasicFeeHandler,
DynamicFeeHandler,
Expand All @@ -28,7 +28,6 @@ pub mod pallet {

#[pallet::pallet]
#[pallet::storage_version(STORAGE_VERSION)]
#[pallet::without_storage_info]
pub struct Pallet<T>(_);

#[pallet::config]
Expand Down
17 changes: 15 additions & 2 deletions traits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#![cfg_attr(not(feature = "std"), no_std)]

use codec::{Decode, Encode};
use codec::{Decode, Encode, MaxEncodedLen};
use primitive_types::{H160, U256};
use scale_info::TypeInfo;
use sp_std::vec::Vec;
Expand All @@ -22,7 +22,20 @@ pub enum TransferType {
GenericTransfer,
}

#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Encode, Decode, TypeInfo, Copy, Default)]
#[derive(
Clone,
Eq,
PartialEq,
Ord,
PartialOrd,
Debug,
Encode,
Decode,
TypeInfo,
Copy,
Default,
MaxEncodedLen,
)]
pub struct MpcAddress(pub [u8; 20]);

pub trait ExtractDestinationData {
Expand Down

0 comments on commit abd6db1

Please sign in to comment.