Skip to content

Commit

Permalink
my_near first
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyProgrammist committed Feb 21, 2024
1 parent 5999e12 commit c855bb4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions examples/mission-control/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use near_sdk::schemars::JsonSchema;
use near_sdk::serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::ops;
use near_sdk::my_near;

#[derive(
PartialEq,
Expand All @@ -25,10 +26,14 @@ use std::ops;
#[schemars(crate = "near_sdk::schemars")]
pub struct Quantity(pub i32);

#[derive(Clone, Serialize, Deserialize, BorshDeserialize, BorshSerialize, JsonSchema)]
#[serde(crate = "near_sdk::serde")]
#[borsh(crate = "near_sdk::borsh")]
#[schemars(crate = "near_sdk::schemars")]
#[my_near]
pub struct X;

// #[derive(Clone, Serialize, Deserialize, BorshDeserialize, BorshSerialize, JsonSchema)]
// #[serde(crate = "near_sdk::serde")]
// #[borsh(crate = "near_sdk::borsh")]
// #[schemars(crate = "near_sdk::schemars")]
#[my_near]
pub struct Account(pub HashMap<Asset, Quantity>);

pub enum Tranx {
Expand Down

0 comments on commit c855bb4

Please sign in to comment.