Skip to content

Commit

Permalink
CTX fix for mocktrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid authored and krebernisak committed Oct 28, 2024
1 parent 36cd7c4 commit ea18df1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/capabilities/streams/mock_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ const baseTimestamp = 1000000000

// NOTE: duplicated from trigger_test.go
func newReport(lggr logger.Logger, feedID [32]byte, price *big.Int, timestamp int64) []byte {
ctx := context.Background()
v3Codec := reportcodec.NewReportCodec(feedID, lggr)
raw, err := v3Codec.BuildReport(v3.ReportFields{
raw, err := v3Codec.BuildReport(ctx, v3.ReportFields{
BenchmarkPrice: price,
Timestamp: uint32(timestamp),

Check failure on line 139 in core/capabilities/streams/mock_trigger.go

View workflow job for this annotation

GitHub Actions / lint

G115: integer overflow conversion int64 -> uint32 (gosec)
ValidFromTimestamp: uint32(timestamp),

Check failure on line 140 in core/capabilities/streams/mock_trigger.go

View workflow job for this annotation

GitHub Actions / lint

G115: integer overflow conversion int64 -> uint32 (gosec)
Expand Down

0 comments on commit ea18df1

Please sign in to comment.