//! Testing BorshStorageKey macro. use borsh::BorshSerialize; use unc_sdk::unc; use unc_sdk::collections::LookupMap; use unc_sdk::BorshStorageKey; #[derive(BorshStorageKey, BorshSerialize)] struct StorageKeyStruct { key: String, } #[derive(BorshStorageKey, BorshSerialize)] enum StorageKeyEnum { Accounts, SubAccounts { account_id: String }, } #[unc(contract_state)] struct Contract { map1: LookupMap, map2: LookupMap, } impl Default for Contract { fn default() -> Self { Self { map1: LookupMap::new(StorageKeyStruct { key: "bla".to_string() }), map2: LookupMap::new(StorageKeyEnum::Accounts), } } } #[unc] impl Contract {} fn main() {}