I have two mappings (uint => customStruct) called listA and listB. I want to run both through a single function to perform operations on the contents.
How do I pass this type into a function so that I can call someFunction(listA) and someFunction(listB)?
I get errors like Type is required to live outside storage.
mappingnor can you check whether a key exists in a mapping. In solidity, mappings exist as if every key was present and had zero's as all of it's values. – Piper Merriam Feb 07 '16 at 06:17