From 3a6e93cb0b3ff33cb9a97a1a95bd6f2cab250a6b Mon Sep 17 00:00:00 2001 From: Jacob Lindahl Date: Thu, 9 May 2024 00:34:32 +0900 Subject: [PATCH] fix: derive `NearSchema` for NEP-171 Token struct (#151) * fix: derive NearSchema for NEP-171 Token struct * fix: unnecessary dependency --- src/standard/nep171/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/standard/nep171/mod.rs b/src/standard/nep171/mod.rs index 28990fa..c338147 100644 --- a/src/standard/nep171/mod.rs +++ b/src/standard/nep171/mod.rs @@ -43,7 +43,7 @@ use near_sdk::{ borsh::BorshSerialize, near, serde::{Deserialize, Serialize}, - AccountId, AccountIdRef, BorshStorageKey, Gas, + AccountId, AccountIdRef, BorshStorageKey, Gas, NearSchema, }; use crate::{hook::Hook, slot::Slot, standard::nep297::Event, DefaultStorageKey}; @@ -415,7 +415,7 @@ impl Nep171Controller for T { } /// Token information structure. -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, NearSchema)] #[serde(crate = "near_sdk::serde")] pub struct Token { /// Token ID.