From d0af57ede5aa65a1f032763d7de110eb5bd0e991 Mon Sep 17 00:00:00 2001 From: GoodDaisy <90915921+GoodDaisy@users.noreply.github.com> Date: Mon, 8 Jan 2024 18:24:51 +0800 Subject: [PATCH] chore: fix typos (#3643) Co-authored-by: satoshiotomakan <127754187+satoshiotomakan@users.noreply.github.com> --- rust/tw_bitcoin/tests/p2pkh.rs | 2 +- samples/cpp/sample.cpp | 2 +- src/Bitcoin/MessageSigner.cpp | 2 +- src/Bitcoin/SigningInput.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/tw_bitcoin/tests/p2pkh.rs b/rust/tw_bitcoin/tests/p2pkh.rs index cb7a49829a4..7ace4a48d5b 100644 --- a/rust/tw_bitcoin/tests/p2pkh.rs +++ b/rust/tw_bitcoin/tests/p2pkh.rs @@ -9,7 +9,7 @@ use tw_proto::BitcoinV2::Proto; use tw_proto::Utxo::Proto as UtxoProto; #[test] -fn coin_entry_emtpy() { +fn coin_entry_empty() { let _coin = TestCoinContext::default(); let alice_private_key = hex("56429688a1a6b00b90ccd22a0de0a376b6569d8684022ae92229a28478bfb657"); diff --git a/samples/cpp/sample.cpp b/samples/cpp/sample.cpp index bb69ec05b1c..11221948e9d 100644 --- a/samples/cpp/sample.cpp +++ b/samples/cpp/sample.cpp @@ -24,7 +24,7 @@ int main() { cout << endl; cout << " *** DISCLAIMER ***" << endl; cout << " THIS IS A SAMPLE APPLICATION WITH DEMONSTRATION PURPOSES ONLY." << endl; - cout << " DO NOT USE WITH REAL SECRETS, REAL ADDRESSESS, OR REAL TRANSACTIONS. USE IT AT YOUR OWN RISK." << endl; + cout << " DO NOT USE WITH REAL SECRETS, REAL ADDRESSES, OR REAL TRANSACTIONS. USE IT AT YOUR OWN RISK." << endl; cout << " *** DISCLAIMER ***" << endl; cout << endl; } diff --git a/src/Bitcoin/MessageSigner.cpp b/src/Bitcoin/MessageSigner.cpp index 2557aed24ae..155b947ca3c 100644 --- a/src/Bitcoin/MessageSigner.cpp +++ b/src/Bitcoin/MessageSigner.cpp @@ -17,7 +17,7 @@ using namespace TW; namespace TW::Bitcoin { -// lenght-encode a message string +// length-encode a message string Data messageToData(const std::string& message) { Data d; TW::encodeVarInt(message.size(), d); diff --git a/src/Bitcoin/SigningInput.h b/src/Bitcoin/SigningInput.h index 69635a1676c..c408c947ed5 100644 --- a/src/Bitcoin/SigningInput.h +++ b/src/Bitcoin/SigningInput.h @@ -68,7 +68,7 @@ class SigningInput { uint32_t lockTime = 0; uint32_t time = 0; - // Besides to_address and change_addres, + // Besides to_address and change_address, // we have other outputs that include address and value std::vector> extraOutputs;