diff --git a/near-contract-standards/src/fungible_token/metadata.rs b/near-contract-standards/src/fungible_token/metadata.rs index 135f257fc..d57dd1df7 100644 --- a/near-contract-standards/src/fungible_token/metadata.rs +++ b/near-contract-standards/src/fungible_token/metadata.rs @@ -1,7 +1,7 @@ use near_sdk::borsh::{self, BorshDeserialize, BorshSerialize}; use near_sdk::json_types::Base64VecU8; -use near_sdk::require; use near_sdk::serde::{Deserialize, Serialize}; +use near_sdk::{ext_contract, require}; pub const FT_METADATA_SPEC: &str = "ft-1.0.0"; @@ -17,6 +17,7 @@ pub struct FungibleTokenMetadata { pub decimals: u8, } +#[ext_contract(ext_ft_metadata)] pub trait FungibleTokenMetadataProvider { fn ft_metadata(&self) -> FungibleTokenMetadata; }