Skip to content

Commit

Permalink
Rename function convertKeyToDomain
Browse files Browse the repository at this point in the history
This commit renames function convertKeyToDomain to
convertAccountStorageMapKeyToStorageDomain.
  • Loading branch information
fxamacker committed Nov 12, 2024
1 parent bc2b313 commit 88c31e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interpreter/account_storagemap.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (s *AccountStorageMap) Domains() map[common.StorageDomain]struct{} {
break
}

domain := convertKeyToDomain(k)
domain := convertAccountStorageMapKeyToStorageDomain(k)
domains[domain] = struct{}{}
}

Expand Down Expand Up @@ -326,14 +326,14 @@ func (i *AccountStorageMapIterator) Next() (common.StorageDomain, *DomainStorage
return common.StorageDomainUnknown, nil
}

key := convertKeyToDomain(k)
key := convertAccountStorageMapKeyToStorageDomain(k)

value := NewDomainStorageMapWithAtreeValue(v)

return key, value
}

func convertKeyToDomain(v atree.Value) common.StorageDomain {
func convertAccountStorageMapKeyToStorageDomain(v atree.Value) common.StorageDomain {
key, ok := v.(Uint64AtreeValue)
if !ok {
panic(errors.NewUnexpectedError("domain key type %T isn't expected", key))
Expand Down

0 comments on commit 88c31e6

Please sign in to comment.