You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, contract_state_for_testing doesn't play nicely with normal flow of tests - changes to the storage made through it aren't reflected in the standard test execution (using dispatchers).
The state not being reflected is caused by ContractState returned by contract_state_for_testing using different storage addresses than the contract used by dispatcher (details to be researched, supposedly it assumes the contract address to be 0).
By cheating the contract address, we can make the ContractState work with the normal fow
Objective
Implement the closure cheatcode for interacting with contract_state_for_testing
Additional Context
Example interface should be something along the lines of this
Current State
Currently,
contract_state_for_testing
doesn't play nicely with normal flow of tests - changes to the storage made through it aren't reflected in the standard test execution (using dispatchers).The state not being reflected is caused by
ContractState
returned bycontract_state_for_testing
using different storage addresses than the contract used by dispatcher (details to be researched, supposedly it assumes the contract address to be 0).By cheating the contract address, we can make the
ContractState
work with the normal fowObjective
Implement the closure cheatcode for interacting with
contract_state_for_testing
Additional Context
Example interface should be something along the lines of this
The text was updated successfully, but these errors were encountered: