Skip to content

Commit

Permalink
Changed trait
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jan 3, 2024
1 parent 79a8a25 commit e81a586
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ pub struct Notification {

#[derive(Serialize, Deserialize, Debug)]
pub struct GetNotificationInput {
notification_hash: AnyDhtHash,
locale: String,
pub notification_hash: AnyDhtHash,
pub locale: String,
}

#[zome_trait]
pub trait PendingNotifications {
/// Returning None here means that the notification was not found
fn get_notification(input: GetNotificationInput) -> ExternResult<Option<Notification>>;

fn emit_new_pending_notification(
Expand Down

0 comments on commit e81a586

Please sign in to comment.