-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(sozo): migration logic to be more robust and testable (#1848)
* refactor: move `load_world_manifest` to utils * add class_hash suffix * refactor: clean up MigrateArgs * fix: enforce seed matches the provided world_address * refactor: print chain_id inside `setup_env` instead of passing it around * move functions to migrate.rs * refactor: some function names * refactor!: don't mutate `MigrationStrategy` use the `MigrationOutput` instead * move update_manifests_and_abi function to migration * refactor: make `name/seed` non optional * remove duplicate test file * add test for seed issue * fix clippy lints * fix formatting * make suggested improvements * fix err string in test * fix formatting --------- Co-authored-by: glihm <[email protected]>
- Loading branch information
Showing
19 changed files
with
1,173 additions
and
1,307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.