mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 14:31:02 +00:00
Removed pallet::getter usage from Polkadot Runtime pallets (#3660)
Part of #3326 @kianenigma @ggwpez polkadot address: 12poSUQPtcF1HUPQGY3zZu2P8emuW9YnsPduA4XG3oCEfJVp --------- Signed-off-by: Matteo Muraca <mmuraca247@gmail.com> Co-authored-by: ordian <write@reusable.software>
This commit is contained in:
@@ -37,7 +37,7 @@ const VOTE_AGAINST: VoteKind = VoteKind::Invalid;
|
||||
const VOTE_BACKING: VoteKind = VoteKind::Backing;
|
||||
|
||||
fn filter_dispute_set(stmts: MultiDisputeStatementSet) -> CheckedMultiDisputeStatementSet {
|
||||
let config = <configuration::Pallet<Test>>::config();
|
||||
let config = configuration::ActiveConfig::<Test>::get();
|
||||
let post_conclusion_acceptance_period = config.dispute_post_conclusion_acceptance_period;
|
||||
|
||||
stmts
|
||||
@@ -1985,7 +1985,7 @@ fn deduplication_and_sorting_works() {
|
||||
fn apply_filter_all<T: Config, I: IntoIterator<Item = DisputeStatementSet>>(
|
||||
sets: I,
|
||||
) -> Vec<CheckedDisputeStatementSet> {
|
||||
let config = <configuration::Pallet<T>>::config();
|
||||
let config = configuration::ActiveConfig::<T>::get();
|
||||
let post_conclusion_acceptance_period = config.dispute_post_conclusion_acceptance_period;
|
||||
|
||||
let mut acc = Vec::<CheckedDisputeStatementSet>::new();
|
||||
@@ -2203,7 +2203,7 @@ fn filter_removes_concluded_ancient() {
|
||||
let candidate_hash_a = CandidateHash(sp_core::H256::repeat_byte(1));
|
||||
let candidate_hash_b = CandidateHash(sp_core::H256::repeat_byte(2));
|
||||
|
||||
<Disputes<Test>>::insert(
|
||||
Disputes::<Test>::insert(
|
||||
&1,
|
||||
&candidate_hash_a,
|
||||
DisputeState {
|
||||
@@ -2214,7 +2214,7 @@ fn filter_removes_concluded_ancient() {
|
||||
},
|
||||
);
|
||||
|
||||
<Disputes<Test>>::insert(
|
||||
Disputes::<Test>::insert(
|
||||
&1,
|
||||
&candidate_hash_b,
|
||||
DisputeState {
|
||||
|
||||
Reference in New Issue
Block a user