Skip to content

feat: add governance config fields to global params proposal #400

feat: add governance config fields to global params proposal

feat: add governance config fields to global params proposal #400

Triggered via push January 8, 2025 05:47
Status Failure
Total duration 1m 46s
Billable time 2m
Artifacts

check.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors
mismatched types: pallets/governance/src/proposal.rs#L433
error[E0308]: mismatched types --> pallets/governance/src/proposal.rs:433:30 | 433 | (current_block + 21_600).max(current_block + config.proposal_expiration) | ------------- ^^^^^^ expected associated type, found integer | | | expected because this is `<<<T as polkadot_sdk::frame_system::Config>::Block as polkadot_sdk::polkadot_sdk_frame::traits::Block>::Header as polkadot_sdk::polkadot_sdk_frame::traits::Header>::Number` | = note: expected associated type `<<<T as polkadot_sdk::frame_system::Config>::Block as polkadot_sdk::polkadot_sdk_frame::traits::Block>::Header as polkadot_sdk::polkadot_sdk_frame::traits::Header>::Number` found type `{integer}` = help: consider constraining the associated type `<<<T as polkadot_sdk::frame_system::Config>::Block as polkadot_sdk::polkadot_sdk_frame::traits::Block>::Header as polkadot_sdk::polkadot_sdk_frame::traits::Header>::Number` to `{integer}` or calling a method that returns `<<<T as polkadot_sdk::frame_system::Config>::Block as polkadot_sdk::polkadot_sdk_frame::traits::Block>::Header as polkadot_sdk::polkadot_sdk_frame::traits::Header>::Number` = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
unresolved import `crate::BlockAmount`: pallets/governance/src/proposal.rs#L3
error[E0432]: unresolved import `crate::BlockAmount` --> pallets/governance/src/proposal.rs:3:5 | 3 | use crate::BlockAmount; | ^^^^^^^^^^^^^^^^^^ no `BlockAmount` in the root
check
Clippy had exited with the 101 exit code
mismatched types: pallets/governance/src/proposal.rs#L433
error[E0308]: mismatched types --> pallets/governance/src/proposal.rs:433:30 | 433 | (current_block + 21_600).max(current_block + config.proposal_expiration) | ------------- ^^^^^^ expected associated type, found integer | | | expected because this is `<<<T as polkadot_sdk::frame_system::Config>::Block as polkadot_sdk::polkadot_sdk_frame::traits::Block>::Header as polkadot_sdk::polkadot_sdk_frame::traits::Header>::Number` | = note: expected associated type `<<<T as polkadot_sdk::frame_system::Config>::Block as polkadot_sdk::polkadot_sdk_frame::traits::Block>::Header as polkadot_sdk::polkadot_sdk_frame::traits::Header>::Number` found type `{integer}` = help: consider constraining the associated type `<<<T as polkadot_sdk::frame_system::Config>::Block as polkadot_sdk::polkadot_sdk_frame::traits::Block>::Header as polkadot_sdk::polkadot_sdk_frame::traits::Header>::Number` to `{integer}` or calling a method that returns `<<<T as polkadot_sdk::frame_system::Config>::Block as polkadot_sdk::polkadot_sdk_frame::traits::Block>::Header as polkadot_sdk::polkadot_sdk_frame::traits::Header>::Number` = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
unresolved import `crate::BlockAmount`: pallets/governance/src/proposal.rs#L3
error[E0432]: unresolved import `crate::BlockAmount` --> pallets/governance/src/proposal.rs:3:5 | 3 | use crate::BlockAmount; | ^^^^^^^^^^^^^^^^^^ no `BlockAmount` in the root