From bdbedbadb3593f79afee3112ea8362f3fd704f1a Mon Sep 17 00:00:00 2001 From: jimwfs Date: Fri, 17 May 2024 14:58:39 +0800 Subject: [PATCH] chore: fix typos (#1971) Co-authored-by: jimwfs <169986508+jimwfs@users.noreply.github.com> --- wallet/transactions/dex/dex_tx.cpp | 2 +- wallet/transactions/swaps/bridges/ethereum/ethereum_side.cpp | 4 ++-- wallet/transactions/swaps/bridges/qtum/common.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wallet/transactions/dex/dex_tx.cpp b/wallet/transactions/dex/dex_tx.cpp index 79d743897..e340bb7c6 100644 --- a/wallet/transactions/dex/dex_tx.cpp +++ b/wallet/transactions/dex/dex_tx.cpp @@ -85,7 +85,7 @@ namespace beam::wallet // const auto peeraddr = _wdb->getAddress(*peerID); // if (peeraddr) // { - // throw InvalidTransactionParametersException("DexSimpleSwap transaction should not save peer adddress"); + // throw InvalidTransactionParametersException("DexSimpleSwap transaction should not save peer address"); // } // diff --git a/wallet/transactions/swaps/bridges/ethereum/ethereum_side.cpp b/wallet/transactions/swaps/bridges/ethereum/ethereum_side.cpp index 0a395446e..c5e374a1a 100644 --- a/wallet/transactions/swaps/bridges/ethereum/ethereum_side.cpp +++ b/wallet/transactions/swaps/bridges/ethereum/ethereum_side.cpp @@ -671,7 +671,7 @@ Amount EthereumSide::CalcLockTxFee(Amount priceGas, AtomicSwapCoin swapCoin) if (IsEthToken(swapCoin)) { - result += 2 * priceGas * ethereum::kApproveTxGasLimit; // sometimes need 2 appove + result += 2 * priceGas * ethereum::kApproveTxGasLimit; // sometimes need 2 approve } return result; @@ -846,4 +846,4 @@ std::string EthereumSide::GetContractAddressStr() const return m_settingsProvider.GetSettings().GetContractAddress(IsHashLockScheme()); } -} // namespace beam::wallet \ No newline at end of file +} // namespace beam::wallet diff --git a/wallet/transactions/swaps/bridges/qtum/common.cpp b/wallet/transactions/swaps/bridges/qtum/common.cpp index ef3b9312e..f8da4e4a6 100644 --- a/wallet/transactions/swaps/bridges/qtum/common.cpp +++ b/wallet/transactions/swaps/bridges/qtum/common.cpp @@ -21,7 +21,7 @@ namespace constexpr uint8_t kQtumMainnetP2KH = 0x3a; constexpr uint8_t kQtumTestnetP2KH = 0x78; - // TODO roman.strilets it's dupplicate (ethereum/common.cpp) + // TODO roman.strilets it's duplicate (ethereum/common.cpp) libbitcoin::wallet::hd_private ProcessHDPrivate(const libbitcoin::wallet::hd_private& privateKey, uint32_t index, bool hard = true) { static constexpr auto first = libbitcoin::wallet::hd_first_hardened_key;