Skip to content

Commit

Permalink
Merge pull request #3846 from anoma/brent/fix-docstring-gov
Browse files Browse the repository at this point in the history
Fix max proposal code size docstring
  • Loading branch information
mergify[bot] authored Sep 26, 2024
2 parents f88c4b9 + d79dd66 commit e228667
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/apps_lib/src/client/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ pub async fn query_protocol_parameters(
);
display_line!(
context.io(),
"{:4}Max. proposal code size: {} kB",
"{:4}Max. proposal code size: {} bytes",
"",
max_proposal_code_size
);
Expand Down
2 changes: 1 addition & 1 deletion crates/apps_lib/src/config/genesis/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ pub struct PosParams {
pub struct GovernanceParams {
/// Min funds to stake to submit a proposal
pub min_proposal_fund: u64,
/// Maximum size of proposal in kibibytes (KiB)
/// Maximum size of proposal in bytes
pub max_proposal_code_size: u64,
/// Minimum number of epochs between the proposal end epoch and start epoch
pub min_proposal_voting_period: u64,
Expand Down
2 changes: 1 addition & 1 deletion crates/governance/src/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use super::storage::keys as goverance_storage;
pub struct GovernanceParameters {
/// Minimum amount of locked funds
pub min_proposal_fund: token::Amount,
/// Maximum kibibyte length for proposal code
/// Maximum length for proposal code in bytes
pub max_proposal_code_size: u64,
/// Minimum number of epochs between the proposal end epoch and start epoch
pub min_proposal_voting_period: u64,
Expand Down

0 comments on commit e228667

Please sign in to comment.