-
Mark Tyneway authored
Adds a helper function to read the correct deployment artifacts from disk given a `hardhat.Hardhat` instance. This code was being repeated throughout the codebase so its better to consolidate it into a single location. Now the `DeployConfig` has the L1 contract addresses required to build a L2 genesis. These addresses do not need to be present in the JSON file itself and instead can be read from disk dynamically. Also add a check function that will error on a config that is not sane. This can be made more strict in the future, currently do not want to break anything in the process of introducing this.
d4737872
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| migration | ||
| testdata | ||
| config.go | ||
| config_test.go | ||
| db_migration.go | ||
| genesis.go | ||
| helpers.go | ||
| layer_one.go | ||
| layer_one_test.go | ||
| layer_two.go | ||
| layer_two_test.go | ||
| setters.go | ||
| test_util.go |