diff --git a/core/src/ledger/governance/cli/onchain.rs b/core/src/ledger/governance/cli/onchain.rs index b47985af3f..60e70ddf7d 100644 --- a/core/src/ledger/governance/cli/onchain.rs +++ b/core/src/ledger/governance/cli/onchain.rs @@ -276,8 +276,8 @@ impl PgfAction { Debug, Clone, BorshSerialize, BorshDeserialize, Serialize, Deserialize, )] pub struct PgfFunding { - /// Pgf continous funding - pub continous: Vec, + /// Pgf continuous funding + pub continuous: Vec, /// pgf retro fundings pub retro: Vec, } diff --git a/core/src/ledger/governance/cli/validation.rs b/core/src/ledger/governance/cli/validation.rs index 86fd8f924f..cb70d146ee 100644 --- a/core/src/ledger/governance/cli/validation.rs +++ b/core/src/ledger/governance/cli/validation.rs @@ -244,7 +244,7 @@ pub fn is_valid_pgf_stewards_data( pub fn is_valid_pgf_funding_data( data: &PgfFunding, ) -> Result<(), ProposalValidation> { - if !data.continous.is_empty() || !data.retro.is_empty() { + if !data.continuous.is_empty() || !data.retro.is_empty() { Ok(()) } else { Err(ProposalValidation::InvalidPgfFundingExtraData) diff --git a/core/src/ledger/storage/mockdb.rs b/core/src/ledger/storage/mockdb.rs index 198158b1aa..6899358705 100644 --- a/core/src/ledger/storage/mockdb.rs +++ b/core/src/ledger/storage/mockdb.rs @@ -485,7 +485,7 @@ impl DB for MockDB { key: &Key, value: impl AsRef<[u8]>, ) -> Result { - // batch_write are directory committed + // batch_write are directly committed self.batch_write_subspace_val(&mut MockDBWriteBatch, height, key, value) } @@ -494,7 +494,7 @@ impl DB for MockDB { height: BlockHeight, key: &Key, ) -> Result { - // batch_delete are directory committed + // batch_delete are directly committed self.batch_delete_subspace_val(&mut MockDBWriteBatch, height, key) } diff --git a/core/src/types/address.rs b/core/src/types/address.rs index 0e42229ce8..b348451996 100644 --- a/core/src/types/address.rs +++ b/core/src/types/address.rs @@ -28,7 +28,7 @@ pub const ESTABLISHED_ADDRESS_BYTES_LEN: usize = 21; /// The length of [`Address`] encoded with Bech32m. // NOTE: This must be kept in sync with the bech32 HRP. // Uppercase prefixes might result in a different length, -// so treat carefully when changing this value. +// so tread carefully when changing this value. pub const ADDRESS_LEN: usize = string_encoding::hrp_len::
() + 1 + HASH_HEX_LEN; diff --git a/core/src/types/transaction/governance.rs b/core/src/types/transaction/governance.rs index 1456e55384..dbc0b4ae5e 100644 --- a/core/src/types/transaction/governance.rs +++ b/core/src/types/transaction/governance.rs @@ -119,9 +119,9 @@ impl TryFrom for InitProposalData { type Error = ProposalError; fn try_from(value: PgfFundingProposal) -> Result { - let continous_fundings = value + let continuous_fundings = value .data - .continous + .continuous .iter() .cloned() .map(|funding| { @@ -151,7 +151,7 @@ impl TryFrom for InitProposalData { }) .collect::>(); - let extra_data = [continous_fundings, retro_fundings].concat(); + let extra_data = [continuous_fundings, retro_fundings].concat(); Ok(InitProposalData { id: value.proposal.id, diff --git a/scripts/get_cometbft.sh b/scripts/get_cometbft.sh index e62c2cb414..5695f28875 100755 --- a/scripts/get_cometbft.sh +++ b/scripts/get_cometbft.sh @@ -2,7 +2,7 @@ set -Eo pipefail -# an exemplary download-url +# an example download-url # https://github.com/tendermint/tendermint/releases/download/v0.34.13/tendermint_0.34.13_linux_amd64.tar.gz # https://github.com/heliaxdev/tendermint/releases/download/v0.1.1-abcipp/tendermint_0.1.0-abcipp_darwin_amd64.tar.gz CMT_MAJORMINOR="0.37" diff --git a/scripts/get_tendermint.sh b/scripts/get_tendermint.sh index d4777dde7a..65e19c77e8 100755 --- a/scripts/get_tendermint.sh +++ b/scripts/get_tendermint.sh @@ -2,7 +2,7 @@ set -Eo pipefail -# an exemplary download-url +# an example download-url # https://github.com/tendermint/tendermint/releases/download/v0.34.13/tendermint_0.34.13_linux_amd64.tar.gz # https://github.com/heliaxdev/tendermint/releases/download/v0.1.1-abcipp/tendermint_0.1.0-abcipp_darwin_amd64.tar.gz TM_MAJORMINOR="0.1" diff --git a/tests/src/e2e/ledger_tests.rs b/tests/src/e2e/ledger_tests.rs index 0b9a897a28..5b3aa128ba 100644 --- a/tests/src/e2e/ledger_tests.rs +++ b/tests/src/e2e/ledger_tests.rs @@ -2337,7 +2337,7 @@ fn pgf_governance_proposal() -> Result<()> { let christel = find_address(&test, CHRISTEL)?; let pgf_funding = PgfFunding { - continous: vec![PgfFundingTarget { + continuous: vec![PgfFundingTarget { amount: token::Amount::from_u64(10), address: bertha.clone(), }],