token types: approval ids use numbers, not strings
use near_sdk::borsh::{self, BorshSerialize};
-use near_sdk::json_types::U64;
use near_sdk::serde::{Deserialize, Serialize};
use near_sdk::AccountId;
@@ -8,7 +7,7 @@ pub type TokenId = String;
#[derive(BorshDeserialize, BorshSerialize)]
pub struct Token {
pub owner_id: AccountId,
- pub approved_account_ids: HashMap<AccountId, U64>,
+ pub approved_account_ids: HashMap<AccountId, u64>,
pub next_approval_id: u64,
}
@@ -18,5 +17,5 @@ pub struct JsonToken {
pub token_id: TokenId,
pub owner_id: AccountId,
pub metadata: TokenMetadata,
- pub approved_account_ids: HashMap<AccountId, U64>,
+ pub approved_account_ids: HashMap<AccountId, u64>,
}
