Skip to content

Commit

Permalink
add next round calls to filter + some small feature flag fixes (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstam1 committed Jun 24, 2024
1 parent 118f5b6 commit 91c8f73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtimes/polimec/src/benchmarks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn output_max_pallet_funding_values() {
SubstrateWeight::<Runtime>::end_evaluation_success(max_projects_to_update_insertion_attempts - 1);
dbg!(end_evaluation_success);

let end_evaluation_failure = SubstrateWeight::<Runtime>::end_evaluation_failure();
let end_evaluation_failure = SubstrateWeight::<Runtime>::end_evaluation_failure(max_projects_to_update_insertion_attempts - 1);
dbg!(end_evaluation_failure);

let start_auction_closing_phase =
Expand Down
13 changes: 11 additions & 2 deletions runtimes/polimec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,16 @@ impl Contains<RuntimeCall> for BaseCallFilter {
pallet_funding::Call::start_auction { .. } |
pallet_funding::Call::root_do_auction_opening { .. } |
pallet_funding::Call::root_do_start_auction_closing { .. } |
pallet_funding::Call::bid { .. }
pallet_funding::Call::bid { .. } |
pallet_funding::Call::root_do_end_auction_closing { .. } |
pallet_funding::Call::community_contribute {..} |
pallet_funding::Call::remaining_contribute {..} |
pallet_funding::Call::decide_project_outcome {..} |
pallet_funding::Call::root_do_community_funding {..} |
pallet_funding::Call::root_do_remainder_funding {..} |
pallet_funding::Call::root_do_end_funding {..} |
pallet_funding::Call::root_do_project_decision {..} |
pallet_funding::Call::root_do_start_settlement {..}
)
},
_ => true,
Expand Down Expand Up @@ -1057,7 +1066,7 @@ impl pallet_funding::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeOrigin = RuntimeOrigin;
#[cfg(any(feature = "runtime-benchmarks", test))]
#[cfg(any(feature = "runtime-benchmarks"))]
type SetPrices = crate::benchmarks::helpers::SetOraclePrices;
type StringLimit = ConstU32<64>;
type SuccessToSettlementTime = SuccessToSettlementTime;
Expand Down

0 comments on commit 91c8f73

Please sign in to comment.