Skip to content

[Forge test][Cheatcode support] vm.load #299

@pkhry

Description

@pkhry

Description

Implement vm.load cheat code for forge test in resolc mode.
function to read storage is inside pallet-revive::Pallet::get_storage().

relevant files are:

  • crates/revive-strategy/src/cheatcodes/mod.rs implementation of cheatcode handler, magic happens here
  • crates/forge/tests/cli/revive_vm.rs - add a test for load here to check that state for a sample contract(can be just a dummy contract with a constructor arg to set one the variables to a certain value) is initialized and can be loaded correctly. (maybe forge fuzz test ?)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions