Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed Nov 1, 2023
1 parent 91716ef commit a7c7c0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migrations/account_type/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ import (
)

type AccountTypeMigration struct {
storage *runtime.Storage
interpreter *interpreter.Interpreter
capabilityIDs map[interpreter.AddressPath]interpreter.UInt64Value
storage *runtime.Storage
interpreter *interpreter.Interpreter
}

func NewAccountTypeMigration(runtime runtime.Runtime, context runtime.Context) (*AccountTypeMigration, error) {
Expand Down Expand Up @@ -81,6 +80,7 @@ func (m *AccountTypeMigration) migrateTypeValuesInAccount(
func (m *AccountTypeMigration) migrateValue(value interpreter.Value) interpreter.Value {
typeValue, ok := value.(interpreter.TypeValue)
if !ok {
// TODO: support migration for type-values nested inside other values.
return nil
}

Expand Down

0 comments on commit a7c7c0c

Please sign in to comment.