Fixing wallet Tests for strongly typed iterators (#1075)

* Fixing wallet Tests for strongly typed iterators

* Update wallet.cpp

Fix formatting
This commit is contained in:
Russel Waters 2018-08-18 20:53:36 -04:00 committed by GitHub
commit 0dfc1f74bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}