Skip to content

Commit

Permalink
chore: fix typos (#1971)
Browse files Browse the repository at this point in the history
Co-authored-by: jimwfs <[email protected]>
  • Loading branch information
jimwfs and jimwfs authored May 17, 2024
1 parent 902be6b commit bdbedba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wallet/transactions/dex/dex_tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
// }

//
Expand Down
4 changes: 2 additions & 2 deletions wallet/transactions/swaps/bridges/ethereum/ethereum_side.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -846,4 +846,4 @@ std::string EthereumSide::GetContractAddressStr() const
return m_settingsProvider.GetSettings().GetContractAddress(IsHashLockScheme());
}

} // namespace beam::wallet
} // namespace beam::wallet
2 changes: 1 addition & 1 deletion wallet/transactions/swaps/bridges/qtum/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bdbedba

Please sign in to comment.