test(contracts): easily set storageXOR values in prestate#879
test(contracts): easily set storageXOR values in prestate#879
Conversation
|
There was a problem hiding this comment.
Replacing the addresses with members of the predeploys object is somewhat orthogonal to the theme of this PR, but seemed like a pretty safe change to include.
There was a problem hiding this comment.
This is the only section of existing code affected by this change, but the Safety Cache tests which are WIP will make heavy use of it.
c70d32e to
6cdad5c
Compare
6cdad5c to
8313d61
Compare
Description
A small change to the test-runner setup code making it possible to specify
contractStoragevalues in the prestate using the specialsetPlaceholderStrings().ie. Imagine you want to store an address which is deployed in the
beforeEachhook. You'd have to run the tests, console.log the address which results in anINVALID_STATE_ACCESS, then paste it here:After: