Open alexytsu opened 1 year ago
Related: #1371
This is part of a general need to inject/configure all externally-provided values into the VM. E.g. the circulating supply is a value provided to the VM by its host (Lotus). Follow a pattern like Primitives
to bring all similar values under control of the test author.
The ref FVM has
I think there could have been just a single concept here, but let's just follow the same design which will make the integration easier.
Currently constants such as
TEST_VM_RAND_ARRAY
andTEST_FAUCET_ADDR
are used as static consts in the TestVM's stack. These are also duplicated and used in thefil_actors_integration_tests
crate to make assertions during test execution.They should be deduplicated a possible solution is to reference GensisSpec usage https://github.com/filecoin-project/builtin-actors/pull/1345#discussion_r1280036734