Skip to content

Commit

Permalink
feat: derive NearSchema for EventLog (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
encody authored May 9, 2024
1 parent 3a6e93c commit 5f39362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/standard/nep297.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -74,7 +74,7 @@ pub trait ToEventLog {

/// NEP-297 Event Log Data
/// <https://github.com/near/NEPs/blob/master/neps/nep-0297.md#specification>
#[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"`.
Expand Down

0 comments on commit 5f39362

Please sign in to comment.