Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add next round calls to filter + some small feature flag fixes #333

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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