Skip to content

Commit

Permalink
lookup_map in store back
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyProgrammist committed Mar 11, 2024
1 parent 104efd9 commit 2e8617a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions near-sdk/src/store/lookup_map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,6 @@ const ERR_ELEMENT_SERIALIZATION: &str = "Cannot serialize element";
///
/// [`with_hasher`]: Self::with_hasher
#[cfg(feature = "abi")]
#[derive(BorshSerialize, BorshDeserialize, BorshSchema)]
pub struct LookupMap<K, V, H = Identity>
where
K: BorshSerialize + Ord,
V: BorshSerialize,
H: ToKey,
{
prefix: Box<[u8]>,
/// Cache for loads and intermediate changes to the underlying vector.
/// The cached entries are wrapped in a [`Box`] to avoid existing pointers from being
/// invalidated.
#[borsh(skip, bound(deserialize = ""))]
cache: StableMap<K, EntryAndHash<V, H::KeyType>>,
}
#[cfg(not(feature = "abi"))]
#[derive(BorshSerialize, BorshDeserialize)]
pub struct LookupMap<K, V, H = Identity>
where
Expand Down

0 comments on commit 2e8617a

Please sign in to comment.