Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
56 views

how to test for storage leaks in pallets

Storage leaks in runtimes can be very damaging and cleaning up with a runtime update migration is non-trivial. I'd like to ensure the absence of storage leaks already in unit testing. My strategy ...
brenzi's user avatar
  • 563
0 votes
1 answer
125 views

How to get access to pallet storage from tests

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?
Nikita Chernega's user avatar
1 vote
1 answer
41 views

How do I call `count()` when testing my pallets `CountedStorageMap`?

I'm using a CountedStorageMap in my custom pallet to store a map of created Things. #[pallet::storage] #[pallet::getter(fn things)] pub type Things<T> = CountedStorageMap<Hasher = ...
vadersfather's user avatar