Skip to content

Commit e228667

Browse files
authored
Merge pull request #3846 from anoma/brent/fix-docstring-gov
Fix max proposal code size docstring
2 parents f88c4b9 + d79dd66 commit e228667

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/apps_lib/src/client/rpc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ pub async fn query_protocol_parameters(
634634
);
635635
display_line!(
636636
context.io(),
637-
"{:4}Max. proposal code size: {} kB",
637+
"{:4}Max. proposal code size: {} bytes",
638638
"",
639639
max_proposal_code_size
640640
);

crates/apps_lib/src/config/genesis/templates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ pub struct PosParams {
431431
pub struct GovernanceParams {
432432
/// Min funds to stake to submit a proposal
433433
pub min_proposal_fund: u64,
434-
/// Maximum size of proposal in kibibytes (KiB)
434+
/// Maximum size of proposal in bytes
435435
pub max_proposal_code_size: u64,
436436
/// Minimum number of epochs between the proposal end epoch and start epoch
437437
pub min_proposal_voting_period: u64,

crates/governance/src/parameters.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use super::storage::keys as goverance_storage;
2525
pub struct GovernanceParameters {
2626
/// Minimum amount of locked funds
2727
pub min_proposal_fund: token::Amount,
28-
/// Maximum kibibyte length for proposal code
28+
/// Maximum length for proposal code in bytes
2929
pub max_proposal_code_size: u64,
3030
/// Minimum number of epochs between the proposal end epoch and start epoch
3131
pub min_proposal_voting_period: u64,

0 commit comments

Comments
 (0)