I have created a simple storage map as follows and I just want to check if it's empty or not. I am comparing it with rust
HashMaps, it has the is_empty() method to check. I intend to use this in the same pallet.
#[pallet::storage] #[pallet::getter(fn check_storage_map)] pub type SimpleStorageMap<T: Config> = StorageMap<_, Blake2_256, u32, u32, ValueQuery>;
I checked the
storage map rust doc but could not find any function associated with it.
I am new to substrate any advice or help is appreciated.