Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sug0 authored and tzemanovic committed Dec 6, 2023
1 parent 9d6ed9f commit b3e9008
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/src/lib/config/genesis/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fn get_tx_to_sign(tag: impl AsRef<str>, data: impl BorshSerialize) -> Tx {
salt: [0; 8],
data: data.serialize_to_vec(),
});
let pk = get_sentinnel_pubkey();
let pk = get_sentinel_pubkey();
tx.add_wrapper(
Fee {
amount_per_gas_unit: Default::default(),
Expand All @@ -124,7 +124,7 @@ fn get_tx_to_sign(tag: impl AsRef<str>, data: impl BorshSerialize) -> Tx {

/// Get a dummy public key.
#[inline]
fn get_sentinnel_pubkey() -> common::PublicKey {
fn get_sentinel_pubkey() -> common::PublicKey {
common::SecretKey::Ed25519(ed25519::SigScheme::from_bytes([0; 32])).ref_to()
}

Expand Down Expand Up @@ -708,7 +708,7 @@ impl<T> Signed<T> {
account_public_keys_map: Some(pks.iter().cloned().collect()),
public_keys: pks.clone(),
threshold,
fee_payer: get_sentinnel_pubkey(),
fee_payer: get_sentinel_pubkey(),
};

let mut tx = self.data.tx_to_sign();
Expand Down Expand Up @@ -737,7 +737,7 @@ impl<T> Signed<T> {
_parts: HashSet<namada_sdk::signing::Signable>,
_user: (),
) -> Result<Tx, namada_sdk::error::Error> {
if pubkey == get_sentinnel_pubkey() {
if pubkey == get_sentinel_pubkey() {
Ok(tx)
} else {
Err(namada_sdk::error::Error::Other(format!(
Expand Down

0 comments on commit b3e9008

Please sign in to comment.