Skip to content

Commit

Permalink
fix: build fail
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyhyde committed Jan 24, 2025
1 parent 8f2944a commit 3d62ff4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contract/r/gnoswap/staker/staker_external_incentive.gno
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func CreateExternalIncentive(
"depositGnsAmount", formatUint(depositGnsAmount),
"currentHeight", formatInt(std.GetHeight()),
"currentTime", formatInt(time.Now().Unix()),
"avgBlockTimeInMs", formatUint(gns.GetAvgBlockTimeInMs()),
"avgBlockTimeInMs", formatInt(gns.GetAvgBlockTimeInMs()),
)
}

Expand Down
4 changes: 2 additions & 2 deletions contract/r/gnoswap/staker/utils.gno
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func formatUint(v interface{}) string {
case uint64:
return strconv.FormatUint(v, 10)
default:
panic(ufmt.Sprintf("invalid type: %T", v))
panic(ufmt.Sprintf("invalid type for Unsigned: %T", v))
}
}

Expand All @@ -196,7 +196,7 @@ func formatInt(v interface{}) string {
case int:
return strconv.Itoa(v)
default:
panic(ufmt.Sprintf("invalid type: %T", v))
panic(ufmt.Sprintf("invalid type for Signed: %T", v))
}
}

Expand Down

0 comments on commit 3d62ff4

Please sign in to comment.