@@ -16,7 +16,7 @@ pub contract GettingStarted {
1616 },
1717 };
1818
19- use uint_note::uint_note::UintNote ;
19+ use dep:: uint_note::uint_note::UintNote ;
2020
2121 #[storage]
2222 struct Storage <Context > {
@@ -38,8 +38,8 @@ pub contract GettingStarted {
3838 let note_owner = context .msg_sender ();
3939 storage .user_private_state .at (note_owner )
4040 // randomness should actually be random, but is a workaround because we can't recover it now
41- .insert (UintNote { value , owner : note_owner , randomness : 6969 } )
42- .emit (encode_and_encrypt_note_unconstrained (&mut context , note_owner , note_owner ));
41+ .insert (UintNote :: new_with_randomness ( value , note_owner , 6969 ) )
42+ .emit (encode_and_encrypt_note_unconstrained (&mut context , note_owner ));
4343 }
4444
4545 #[public]
@@ -52,7 +52,7 @@ pub contract GettingStarted {
5252 let maybe_contract_owner = context .msg_sender ();
5353
5454 storage .contract_private_state .initialize_or_replace (UintNote ::new (value , maybe_contract_owner ))
55- .emit (encode_and_encrypt_note_unconstrained (&mut context , maybe_contract_owner , maybe_contract_owner ));
55+ .emit (encode_and_encrypt_note_unconstrained (&mut context , maybe_contract_owner ));
5656
5757 GettingStarted ::at (context .this_address ())._assert_is_owner (maybe_contract_owner ).enqueue (&mut context );
5858 }
0 commit comments