Skip to content

Commit

Permalink
fixing brain fart
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Sep 4, 2023
1 parent 09be1ea commit e47fed5
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use dep::value_note::{
};

struct EasyPrivateUint {
context: Option<&mut PrivateContext>,
maybe_context: Option<&mut PrivateContext>,
set: Set<ValueNote, VALUE_NOTE_LEN>,
storage_slot: Field,
}
Expand All @@ -32,7 +32,7 @@ impl EasyPrivateUint {
note_interface: ValueNoteMethods,
};
EasyPrivateUint {
context: private_context,
maybe_context: private_context,
set,
storage_slot,
}
Expand All @@ -48,10 +48,10 @@ impl EasyPrivateUint {

// Emit the newly created encrypted note preimages via oracle calls.
let owner_key = get_public_key(owner);
let maybeContext = self.context.unwrap();
let context = self.maybe_context.unwrap();
emit_encrypted_log(
maybeContext,
(*maybeContext).this_address(),
context,
(*context).this_address(),
self.set.storage_slot,
owner_key,
addend_note.serialise(),
Expand Down Expand Up @@ -94,10 +94,10 @@ impl EasyPrivateUint {

let owner_key = get_public_key(owner);

let maybeContext = self.context.unwrap();
let context = self.maybe_context.unwrap();
emit_encrypted_log(
maybeContext,
(*maybeContext).this_address(),
context,
(*context).this_address(),
self.set.storage_slot,
owner_key,
encrypted_data,
Expand Down

0 comments on commit e47fed5

Please sign in to comment.