I have approvals map in my pallet
So when i try to get value from my storage, I'm getting this error
So how to properly use pallet storage in tests?
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityYou could add a getter for your storage.
#[pallet::storage]
#[pallet::getter(fn approvals)]
pub type Approvals<T: Config> = StorageDoubleMap<...>;
Then it could be used in your test.
assert_eq!(TemplateModule::approvals(whitelisted_caller(), recipient), Some(true));