Skip to content

Commit

Permalink
Fix WasRestoredFromStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
karimodm committed Jul 31, 2023
1 parent cc9345a commit 87c854d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ds/authenticated_map_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func newAuthenticatedMap[K, V any](

// WasRestoredFromStorage returns true if the map has been restored from storage.
func (m *authenticatedMap[K, V]) WasRestoredFromStorage() bool {
return len(m.root.Get()) == 0
return len(m.root.Get()) != 0
}

// Root returns the root of the state sparse merkle tree at the latest committed slot.
Expand Down

0 comments on commit 87c854d

Please sign in to comment.