Skip to content

Commit e9a1bb4

Browse files
committed
Fix compilation errors from previous merge
1 parent 78fd192 commit e9a1bb4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/bundle/burn_validation.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,16 @@ mod tests {
145145
///
146146
/// A `BTreeMap<AssetBase, AssetRecord>` containing the asset records.
147147
fn build_state(data: &[(AssetBase, u64)]) -> BTreeMap<AssetBase, AssetRecord> {
148-
use crate::keys::{FullViewingKey, Scope, SpendingKey};
148+
use crate::constants::reference_keys::ReferenceKeys;
149149

150150
let mut rng = OsRng;
151-
let fvk = FullViewingKey::from(&SpendingKey::random(&mut rng));
152-
let recipient = fvk.address_at(0u32, Scope::External);
153151

154152
data.iter()
155153
.map(|(asset, supply)| {
156-
let reference_note = Note::new(
157-
recipient,
158-
NoteValue::from_raw(0),
154+
let reference_note = Note::new_issue_note(
155+
ReferenceKeys::recipient(),
156+
NoteValue::zero(),
159157
*asset,
160-
crate::note::Rho::zero(),
161158
&mut rng,
162159
);
163160

0 commit comments

Comments
 (0)