Skip to content

Commit

Permalink
comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Jul 26, 2023
1 parent 309d6df commit 7ca97cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func SetAddress(store sdk.KVStore, key []byte, val sdk.AccAddress) {
}

// GetTimeMs retrieves time saved as Unix time in Miliseconds.
// Returns sdkerrors.NotFound error if the value is not there, hence time = 0 is not supported.
// Returns if the value is not in the store, returns (0 unix time, false).
func GetTimeMs(store sdk.KVStore, key []byte) (time.Time, bool) {
t, ok := GetInteger[int64](store, key)
return time.UnixMilli(t), ok
Expand Down

0 comments on commit 7ca97cb

Please sign in to comment.