Skip to content

Commit

Permalink
fix: derive NearSchema for NEP-171 Token struct (#151)
Browse files Browse the repository at this point in the history
* fix: derive NearSchema for NEP-171 Token struct

* fix: unnecessary dependency
  • Loading branch information
encody committed May 8, 2024
1 parent 6206116 commit 3a6e93c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/standard/nep171/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -415,7 +415,7 @@ impl<T: Nep171ControllerInternal> 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.
Expand Down

0 comments on commit 3a6e93c

Please sign in to comment.