Skip to content

Commit

Permalink
Refactor Storage.isV1Account()
Browse files Browse the repository at this point in the history
  • Loading branch information
fxamacker committed Nov 25, 2024
1 parent 1568414 commit b51053d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions runtime/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,7 @@ func (s *Storage) isV1Account(address common.Address) (isV1 bool) {
// Check if a storage map register exists for any of the domains.
// Check the most frequently used domains first, such as storage, public, private.
for _, domain := range common.AllStorageDomains {
_, domainExists, err := readSlabIndexFromRegister(
s.Ledger,
address,
[]byte(domain.Identifier()),
)
if err != nil {
panic(err)
}
domainExists := s.hasDomainRegister(address, domain)
if domainExists {
return true
}
Expand Down

0 comments on commit b51053d

Please sign in to comment.