diff --git a/crates/core/component/shielded-pool/src/spend/plan.rs b/crates/core/component/shielded-pool/src/spend/plan.rs index 92faf6e355..56f4657ca4 100644 --- a/crates/core/component/shielded-pool/src/spend/plan.rs +++ b/crates/core/component/shielded-pool/src/spend/plan.rs @@ -2,7 +2,7 @@ use ark_ff::UniformRand; use decaf377::{FieldExt, Fq, Fr}; use decaf377_rdsa::{Signature, SpendAuth}; use penumbra_asset::{Balance, Value, STAKING_TOKEN_ASSET_ID}; -use penumbra_keys::{Address, FullViewingKey}; +use penumbra_keys::{keys::AddressIndex, FullViewingKey}; use penumbra_proto::{core::component::shielded_pool::v1 as pb, DomainType}; use penumbra_sct::Nullifier; use penumbra_tct as tct; @@ -42,8 +42,9 @@ impl SpendPlan { } /// Create a dummy [`SpendPlan`]. - pub fn dummy(rng: &mut R) -> SpendPlan { - let dummy_address = Address::dummy(rng); + pub fn dummy(rng: &mut R, fvk: &FullViewingKey) -> SpendPlan { + // A valid address we can spend; since the note is hidden, we can just pick the default. + let dummy_address = fvk.payment_address(AddressIndex::default()).0; let rseed = Rseed::generate(rng); let dummy_note = Note::from_parts( dummy_address,