Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fxamacker committed Apr 23, 2024
1 parent 40a8e62 commit 132fbc4
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions cmd/util/cmd/execution-state-extract/execution_state_extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,19 +364,21 @@ func newMigrations(
))
}

acctBasedMigrations = append(acctBasedMigrations, migrators.NewAtreeRegisterMigrator(
rwf,
flagValidateMigration,
flagLogVerboseValidationError,
flagContinueMigrationOnValidationError,
flagCheckStorageHealthBeforeMigration,
flagCheckStorageHealthAfterMigration,
))

acctBasedMigrations = append(acctBasedMigrations, &migrators.DeduplicateContractNamesMigration{})

// This will fix storage used discrepancies caused by the previous migrations
acctBasedMigrations = append(acctBasedMigrations, &migrators.AccountUsageMigrator{})
acctBasedMigrations = append(acctBasedMigrations,
migrators.NewAtreeRegisterMigrator(
rwf,
flagValidateMigration,
flagLogVerboseValidationError,
flagContinueMigrationOnValidationError,
flagCheckStorageHealthBeforeMigration,
flagCheckStorageHealthAfterMigration,
),

&migrators.DeduplicateContractNamesMigration{},

// This will fix storage used discrepancies caused by the previous migrations
&migrators.AccountUsageMigrator{},
)

migrations := []ledger.Migration{
migrators.CreateAccountBasedMigration(
Expand Down

0 comments on commit 132fbc4

Please sign in to comment.