Skip to content

Commit eb31520

Browse files
authored
chore(deps): gouroboros 0.120.1 (#411)
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
1 parent d71c636 commit eb31520

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
connectrpc.com/grpchealth v1.4.0
1010
connectrpc.com/grpcreflect v1.3.0
1111
github.com/blinklabs-io/adder v0.28.0
12-
github.com/blinklabs-io/gouroboros v0.118.0
12+
github.com/blinklabs-io/gouroboros v0.120.1
1313
github.com/blinklabs-io/tx-submit-api v0.20.8
1414
github.com/gin-gonic/gin v1.10.0
1515
github.com/gorilla/websocket v1.5.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5M
2121
github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
2222
github.com/blinklabs-io/adder v0.28.0 h1:CrJ2jwR/LX+O1qHGNanR4bJulMX2tuIH6L8XhVGpmGA=
2323
github.com/blinklabs-io/adder v0.28.0/go.mod h1:K0ccxldfxDteR2cwizVoga1eYXRgpTyMbwZaotj1+Ns=
24-
github.com/blinklabs-io/gouroboros v0.118.0 h1:6ntqmaYDVU/APofYUNdRR/9ssuoOmWyBLbsTA6J2Q7g=
25-
github.com/blinklabs-io/gouroboros v0.118.0/go.mod h1:4slb9HmHNlV1Z7wi6WDDa9GlYCutff8qCEfGYRVN9i8=
24+
github.com/blinklabs-io/gouroboros v0.120.1 h1:WcYVOwxQm/6E93qI3apCO2IPFQNoGlQIi34R58tya2Y=
25+
github.com/blinklabs-io/gouroboros v0.120.1/go.mod h1:4slb9HmHNlV1Z7wi6WDDa9GlYCutff8qCEfGYRVN9i8=
2626
github.com/blinklabs-io/ouroboros-mock v0.3.7 h1:86FvD591XhdGk2BqQweRKfwc6Y6ll5Lunmo/RUehJ6o=
2727
github.com/blinklabs-io/ouroboros-mock v0.3.7/go.mod h1:611xZgdWCxZsSaS5tjgxqjmWIkSpsM9eKuQAKozw+sk=
2828
github.com/blinklabs-io/tx-submit-api v0.20.8 h1:SYe5jviJ2LCqICdKeSvY29IL0d00iwUytM54P/GBCUk=

internal/api/localstatequery.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,16 @@ func handleLocalStateQuerySystemStart(c *gin.Context) {
133133
c.JSON(500, apiError(err.Error()))
134134
return
135135
}
136-
136+
// Validate data before conversion
137+
if result.Year.Int64() > math.MaxInt {
138+
c.JSON(500, apiError("invalid date conversion"))
139+
return
140+
}
137141
// Create response
138142
resp := responseLocalStateQuerySystemStart{
139-
Year: result.Year,
143+
Year: int(result.Year.Int64()),
140144
Day: result.Day,
141-
Picoseconds: result.Picoseconds,
145+
Picoseconds: result.Picoseconds.Uint64(),
142146
}
143147
c.JSON(200, resp)
144148
}

0 commit comments

Comments
 (0)