Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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?
You could add a getter for your storage.
pub type Approvals<T: Config> = StorageDoubleMap<...>;
Then it could be used in your test.
assert_eq!(TemplateModule::approvals(whitelisted_caller(), recipient), Some(true));
Required, but never shown