Skip to content

Commit

Permalink
fix: revert bad change
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Oct 9, 2024
1 parent e2ab3a3 commit b417987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gno/p/jsonutil/jsonutil.gno
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func DurationNode(value time.Duration) *json.Node {
return Int64Node(value.Nanoseconds())
}

func MustDurationSeconds(node *json.Node) time.Duration {
return time.Second * time.Duration(node.MustNumeric())
func MustDurationSeconds(value *json.Node) time.Duration {
return time.Duration(MustInt64(value)) * time.Second
}

func EmptyObjectNode() *json.Node {
Expand Down

0 comments on commit b417987

Please sign in to comment.