feat: add governance config fields to global params proposal #400
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
|