File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments