Apply suggestions from code review

This commit is contained in:
Kris Nuttycombe 2022-03-25 18:37:31 -06:00 committed by GitHub
parent 2ef41824ff
commit 74f770426b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -1134,7 +1134,7 @@ pub extern "C" fn orchard_wallet_get_potential_spends_from_nullifier(
) {
let wallet = unsafe { wallet.as_ref() }.expect("Wallet pointer may not be null.");
let nullifier =
Nullifier::from_bytes(&*unsafe { nullifier.as_ref() }.expect("nullifier may not be null."));
Nullifier::from_bytes(unsafe { nullifier.as_ref() }.expect("nullifier may not be null."));
if let Some(inpoints) = wallet.potential_spends.get(&nullifier.unwrap()) {
for inpoint in inpoints {

View File

@ -823,7 +823,6 @@ TEST(WalletTests, GetConflictedOrchardNotes) {
auto recipient = ivk.Address(j);
uint256 orchardAnchor;
orchard::Builder(true, true, orchardAnchor);
// Generate transparent funds
CBasicKeyStore keystore;