Skip to content

Commit

Permalink
use Copy
Browse files Browse the repository at this point in the history
Signed-off-by: Cal Bera <[email protected]>
  • Loading branch information
calbera authored Jul 30, 2024
1 parent 5d3693c commit fcf1c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/node-api/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (b *Backend[
}
b.cache.AddQueryContext(slot, queryCtx)
}
st = b.sb.StateFromContext(queryCtx)
st = b.sb.StateFromContext(queryCtx).Copy()

Check failure on line 189 in mod/node-api/backend/backend.go

View workflow job for this annotation

GitHub Actions / nilaway

b.sb.StateFromContext(queryCtx).Copy undefined (type BeaconStateT has no field or method Copy)

Check failure on line 189 in mod/node-api/backend/backend.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

b.sb.StateFromContext(queryCtx).Copy undefined (type BeaconStateT has no field or method Copy)

// If using height 0 for the query context, make sure to return the latest
// slot.
Expand Down

0 comments on commit fcf1c8c

Please sign in to comment.