Skip to content

Commit

Permalink
fix suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Nov 18, 2024
1 parent c7b02e3 commit 29aea54
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions runtime/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,8 @@ func (s *Storage) ScheduleV2Migration(address common.Address) {
func (s *Storage) ScheduleV2MigrationForModifiedAccounts() {
for address, isV1 := range s.cachedV1Accounts { //nolint:maprange
if isV1 && s.PersistentSlabStorage.HasUnsavedChanges(atree.Address(address)) {
s.ScheduleV2Migration(address)
s.ScheduleV2Migration(address)
}
}

s.ScheduleV2Migration(address)
}
}

Expand Down Expand Up @@ -481,7 +478,6 @@ func (s *Storage) migrateV1AccountsToV2(inter *interpreter.Interpreter) error {
return err
}


s.AccountStorageV2.cacheAccountStorageMap(
address,
accountStorageMap,
Expand Down

0 comments on commit 29aea54

Please sign in to comment.