diff --git a/bridges/snowbridge/pallets/ethereum-client/src/lib.rs b/bridges/snowbridge/pallets/ethereum-client/src/lib.rs index 0644010e92b5d..9c44a19492273 100644 --- a/bridges/snowbridge/pallets/ethereum-client/src/lib.rs +++ b/bridges/snowbridge/pallets/ethereum-client/src/lib.rs @@ -152,17 +152,14 @@ pub mod pallet { /// Latest imported checkpoint root #[pallet::storage] - #[pallet::getter(fn initial_checkpoint_root)] pub type InitialCheckpointRoot = StorageValue<_, H256, ValueQuery>; /// Latest imported finalized block root #[pallet::storage] - #[pallet::getter(fn latest_finalized_block_root)] pub type LatestFinalizedBlockRoot = StorageValue<_, H256, ValueQuery>; /// Beacon state by finalized block root #[pallet::storage] - #[pallet::getter(fn finalized_beacon_state)] pub type FinalizedBeaconState = StorageMap<_, Identity, H256, CompactBeaconState, OptionQuery>; @@ -176,7 +173,6 @@ pub mod pallet { StorageMap<_, Identity, u32, H256, ValueQuery>; #[pallet::storage] - #[pallet::getter(fn validators_root)] pub type ValidatorsRoot = StorageValue<_, H256, ValueQuery>; /// Sync committee for current period @@ -193,7 +189,6 @@ pub mod pallet { /// The current operating mode of the pallet. #[pallet::storage] - #[pallet::getter(fn operating_mode)] pub type OperatingMode = StorageValue<_, BasicOperatingMode, ValueQuery>; #[pallet::call] diff --git a/bridges/snowbridge/pallets/inbound-queue/src/lib.rs b/bridges/snowbridge/pallets/inbound-queue/src/lib.rs index 85b98c643b6c8..9d3cc7bf705f7 100644 --- a/bridges/snowbridge/pallets/inbound-queue/src/lib.rs +++ b/bridges/snowbridge/pallets/inbound-queue/src/lib.rs @@ -223,7 +223,6 @@ pub mod pallet { /// The current operating mode of the pallet. #[pallet::storage] - #[pallet::getter(fn operating_mode)] pub type OperatingMode = StorageValue<_, BasicOperatingMode, ValueQuery>; #[pallet::call] diff --git a/bridges/snowbridge/pallets/outbound-queue/src/lib.rs b/bridges/snowbridge/pallets/outbound-queue/src/lib.rs index 9b9dbe854a5ee..e846c94dd6579 100644 --- a/bridges/snowbridge/pallets/outbound-queue/src/lib.rs +++ b/bridges/snowbridge/pallets/outbound-queue/src/lib.rs @@ -227,7 +227,6 @@ pub mod pallet { /// `on_initialize`, so should never go into block PoV. #[pallet::storage] #[pallet::unbounded] - #[pallet::getter(fn message_leaves)] pub(super) type MessageLeaves = StorageValue<_, Vec, ValueQuery>; /// The current nonce for each message origin @@ -236,7 +235,6 @@ pub mod pallet { /// The current operating mode of the pallet. #[pallet::storage] - #[pallet::getter(fn operating_mode)] pub type OperatingMode = StorageValue<_, BasicOperatingMode, ValueQuery>; #[pallet::hooks] diff --git a/bridges/snowbridge/pallets/system/src/lib.rs b/bridges/snowbridge/pallets/system/src/lib.rs index eb3da095fe855..eea4d09379ef7 100644 --- a/bridges/snowbridge/pallets/system/src/lib.rs +++ b/bridges/snowbridge/pallets/system/src/lib.rs @@ -253,16 +253,13 @@ pub mod pallet { /// The set of registered agents #[pallet::storage] - #[pallet::getter(fn agents)] pub type Agents = StorageMap<_, Twox64Concat, AgentId, (), OptionQuery>; /// The set of registered channels #[pallet::storage] - #[pallet::getter(fn channels)] pub type Channels = StorageMap<_, Twox64Concat, ChannelId, Channel, OptionQuery>; #[pallet::storage] - #[pallet::getter(fn parameters)] pub type PricingParameters = StorageValue<_, PricingParametersOf, ValueQuery, T::DefaultPricingParameters>; diff --git a/prdoc/pr_7914.prdoc b/prdoc/pr_7914.prdoc new file mode 100644 index 0000000000000..0c455d7cac01a --- /dev/null +++ b/prdoc/pr_7914.prdoc @@ -0,0 +1,16 @@ +title: Removed pallet::getter from Snowbridge pallets +doc: + - audience: Runtime Dev + description: | + This pr removes all pallet::getter occurrences from Snowbridge pallets. + +crates: + - name: snowbridge-pallet-ethereum-client + bump: patch + - name: snowbridge-pallet-inbound-queue + bump: patch + - name: snowbridge-pallet-outbound-queue + bump: patch + - name: snowbridge-pallet-system + bump: patch +