Skip to content

Commit

Permalink
remaining typo fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Dec 28, 2023
1 parent f487759 commit acb605c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions core/src/ledger/governance/cli/onchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ impl PgfAction {
Debug, Clone, BorshSerialize, BorshDeserialize, Serialize, Deserialize,
)]
pub struct PgfFunding {
/// Pgf continous funding
pub continous: Vec<PgfFundingTarget>,
/// Pgf continuous funding
pub continuous: Vec<PgfFundingTarget>,
/// pgf retro fundings
pub retro: Vec<PgfFundingTarget>,
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/ledger/governance/cli/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions core/src/ledger/storage/mockdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ impl DB for MockDB {
key: &Key,
value: impl AsRef<[u8]>,
) -> Result<i64> {
// batch_write are directory committed
// batch_write are directly committed
self.batch_write_subspace_val(&mut MockDBWriteBatch, height, key, value)
}

Expand All @@ -494,7 +494,7 @@ impl DB for MockDB {
height: BlockHeight,
key: &Key,
) -> Result<i64> {
// batch_delete are directory committed
// batch_delete are directly committed
self.batch_delete_subspace_val(&mut MockDBWriteBatch, height, key)
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/types/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Address>() + 1 + HASH_HEX_LEN;

Expand Down
6 changes: 3 additions & 3 deletions core/src/types/transaction/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ impl TryFrom<PgfFundingProposal> for InitProposalData {
type Error = ProposalError;

fn try_from(value: PgfFundingProposal) -> Result<Self, Self::Error> {
let continous_fundings = value
let continuous_fundings = value
.data
.continous
.continuous
.iter()
.cloned()
.map(|funding| {
Expand Down Expand Up @@ -151,7 +151,7 @@ impl TryFrom<PgfFundingProposal> for InitProposalData {
})
.collect::<Vec<PGFAction>>();

let extra_data = [continous_fundings, retro_fundings].concat();
let extra_data = [continuous_fundings, retro_fundings].concat();

Ok(InitProposalData {
id: value.proposal.id,
Expand Down
2 changes: 1 addition & 1 deletion scripts/get_cometbft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion scripts/get_tendermint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/src/e2e/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}],
Expand Down

0 comments on commit acb605c

Please sign in to comment.