From c842c94422a9b40cdbdb17f063ccf35d7e55a645 Mon Sep 17 00:00:00 2001 From: kylezs Date: Tue, 17 Nov 2020 13:29:32 +1100 Subject: [PATCH 1/2] Fix comment on Account::new example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a550913..3d157d4 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ master.add_account(account); // account number 1, sub-account 0 (which usually means receiver) BIP32 look-ahead 10 let account = Account::new(&mut unlocker, AccountAddressType::P2WPKH, 1, 0, 10).unwrap(); master.add_account(account); -// account number 1, sub-account 0 (which usually means change) BIP32 look-ahead 10 +// account number 1, sub-account 1 (which usually means change) BIP32 look-ahead 10 let account = Account::new(&mut unlocker, AccountAddressType::P2WPKH, 1, 1, 10).unwrap(); master.add_account(account); @@ -184,4 +184,4 @@ let reconstructed_master = MasterAccount::from_seed(&reconstructed_seed, 0, Netw // prove that everything went fine assert_eq!(master.master_public(), reconstructed_master.master_public()); assert_eq!(master.encrypted(), reconstructed_master.encrypted()); -``` \ No newline at end of file +``` From 52369c2f6431e794485cd2cd69e9523a8b452b58 Mon Sep 17 00:00:00 2001 From: kylezs Date: Tue, 17 Nov 2020 13:30:24 +1100 Subject: [PATCH 2/2] Update README.md