From 0dfc1f74bd9a5a860cef70fe80ab64154eaf1655 Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Sat, 18 Aug 2018 20:53:36 -0400 Subject: [PATCH] Fixing wallet Tests for strongly typed iterators (#1075) * Fixing wallet Tests for strongly typed iterators * Update wallet.cpp Fix formatting --- rai/core_test/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rai/core_test/wallet.cpp b/rai/core_test/wallet.cpp index b804c5db..b30fcc0b 100644 --- a/rai/core_test/wallet.cpp +++ b/rai/core_test/wallet.cpp @@ -96,7 +96,7 @@ TEST (wallet, one_item_iteration) rai::raw_key password; wallet.wallet_key (password, transaction); rai::raw_key key; - key.decrypt (rai::wallet_value (i->second).key, password, i->first.uint256 ().owords[0]); + key.decrypt (rai::wallet_value (i->second).key, password, (rai::uint256_union (i->first)).owords[0].number ()); ASSERT_EQ (key1.prv, key); } } @@ -124,7 +124,7 @@ TEST (wallet, two_item_iteration) rai::raw_key password; wallet.wallet_key (password, transaction); rai::raw_key key; - key.decrypt (rai::wallet_value (i->second).key, password, i->first.uint256 ().owords[0]); + key.decrypt (rai::wallet_value (i->second).key, password, (rai::uint256_union (i->first)).owords[0].number ()); prvs.insert (key.data); } }