Skip to content

Commit

Permalink
Addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sklppy88 committed Jun 28, 2024
1 parent 83d914a commit cd0eb97
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{
};
use dep::protocol_types::{address::AztecAddress, grumpkin_point::GrumpkinPoint, traits::Serialize};

fn emit_with_keys<Event, NB, MB, OB, N, M>(
fn emit<Event, NB, MB, OB, N, M>(
context: &mut PublicContext,
event: Event
) where Event: EventInterface<NB, MB>, Event: Serialize<N>, [Field; N]: LensForEventSelector<N, M> {
Expand All @@ -25,7 +25,7 @@ fn emit_with_keys<Event, NB, MB, OB, N, M>(

pub fn encode_event<Event, NB, MB, OB, N, M>(context: &mut PublicContext) -> fn[(&mut PublicContext,)](Event) -> () where Event: EventInterface<NB, MB>, Event: Serialize<N>, [Field; N]: LensForEventSelector<N, M> {
| e: Event | {
emit_with_keys(
emit(
context,
e,
);
Expand Down

0 comments on commit cd0eb97

Please sign in to comment.