mud icon indicating copy to clipboard operation
mud copied to clipboard

add tests that checks if a table is registered when used

Open frolic opened this issue 1 year ago • 0 comments

from https://github.com/latticexyz/mud/pull/2877#discussion_r1622262839

we could set up our tests to track storage access, then check that all tables accessed were registered: https://github.com/foundry-rs/forge-std/blob/52715a217dc51d0de15877878ab8213f6cbbbab5/src/Vm.sol#L406-L407

not sure how hard this will be with our storage slots being hashes of table ID + key, but maybe there's something smart we can do here?

frolic avatar May 31 '24 11:05 frolic