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:
parent
d865ad68e0
commit
0dfc1f74bd
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue