From 7cd33d1dbcfee6241def895121c6e118f28d7de7 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Mon, 11 Nov 2024 17:01:52 -0700 Subject: [PATCH] Fix typos. --- src/device_trezor/device_trezor.cpp | 2 +- src/multisig/multisig_account.h | 2 +- src/multisig/multisig_account_kex_impl.cpp | 2 +- src/wallet/wallet2.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/device_trezor/device_trezor.cpp b/src/device_trezor/device_trezor.cpp index 03985b84a..805fcc656 100644 --- a/src/device_trezor/device_trezor.cpp +++ b/src/device_trezor/device_trezor.cpp @@ -511,7 +511,7 @@ namespace trezor { tools::wallet2::signed_tx_set & signed_tx, hw::tx_aux_data & aux_data) { - CHECK_AND_ASSERT_THROW_MES(std::get<0>(unsigned_tx.transfers) == 0, "Unsuported non zero offset"); + CHECK_AND_ASSERT_THROW_MES(std::get<0>(unsigned_tx.transfers) == 0, "Unsupported non zero offset"); TREZOR_AUTO_LOCK_CMD(); require_connected(); diff --git a/src/multisig/multisig_account.h b/src/multisig/multisig_account.h index 917f5c87a..d1de2349e 100644 --- a/src/multisig/multisig_account.h +++ b/src/multisig/multisig_account.h @@ -156,7 +156,7 @@ namespace multisig const std::string& get_next_kex_round_msg() const { return m_next_round_kex_message; } //account status functions - // account has been intialized, and the account holder can use the 'common' key + // account has been initialized, and the account holder can use the 'common' key bool account_is_active() const; // account has gone through main kex rounds, only remaining step is to verify all other participants are ready bool main_kex_rounds_done() const; diff --git a/src/multisig/multisig_account_kex_impl.cpp b/src/multisig/multisig_account_kex_impl.cpp index 5d2f362e5..f9571bdd2 100644 --- a/src/multisig/multisig_account_kex_impl.cpp +++ b/src/multisig/multisig_account_kex_impl.cpp @@ -598,7 +598,7 @@ namespace multisig // note: if num_signers_required == signers.size(), then this test will ensure all signers are present in 'origins', // which contains only unique pubkeys CHECK_AND_ASSERT_THROW_MES(std::find(signers.begin(), signers.end(), origin) != signers.end(), - "An unknown origin recommended a multisig post-kex verification messsage."); + "An unknown origin recommended a multisig post-kex verification message."); } return pubkey_origins_map; diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 3874ce850..6d586283c 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -5909,7 +5909,7 @@ std::string wallet2::make_multisig(const epee::wipeable_string &password, CHECK_AND_ASSERT_THROW_MES(std::find(signers.begin(), signers.end(), multisig_account.get_base_pubkey()) != signers.end(), "The local account's signer key was not found in initial multisig kex messages when converting a wallet to multisig."); - // intialize key exchange + // initialize key exchange multisig_account.initialize_kex(threshold, signers, expanded_msgs); CHECK_AND_ASSERT_THROW_MES(multisig_account.account_is_active(), "Failed to activate multisig account.");