Add ext_contract macro to FungibleTokenMetadataProvider trait
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;
}
