From 5f39362cd73ad161df6c41e302ef662bbf833015 Mon Sep 17 00:00:00 2001 From: Jacob Lindahl Date: Thu, 9 May 2024 22:22:39 +0900 Subject: [PATCH] feat: derive NearSchema for EventLog (#152) --- src/standard/nep297.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/standard/nep297.rs b/src/standard/nep297.rs index 79def6f..66eb816 100644 --- a/src/standard/nep297.rs +++ b/src/standard/nep297.rs @@ -4,7 +4,7 @@ use std::borrow::Cow; use near_sdk::{ serde::{self, Deserialize, Serialize}, - serde_json, + serde_json, NearSchema, }; /// Emit events according to the [NEP-297 event standard](https://nomicon.io/Standards/EventsFormat). @@ -74,7 +74,7 @@ pub trait ToEventLog { /// NEP-297 Event Log Data /// -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)] +#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, NearSchema)] #[serde(crate = "near_sdk::serde")] pub struct EventLog<'a, T> { /// Name of the event standard, e.g. `"nep171"`.