I am trying to write unit tests on functions that take in a storage reference as parameters. There is not much great documentation around how to create literals for these types. These include: address payable[] storage
, mapping(address=>uint) storage
.
IIUC, I could define these values at the contract scope and then declare storage variables that point to them but that just feels like very evil programming. Is there anyway to create storage variables within the scope of a function that I could use when unit testing?