From 440b61dae573c6bde8347e564cea3afd9b8f8d2d Mon Sep 17 00:00:00 2001 From: Charlie Chen <34498985+ws4charlie@users.noreply.github.com> Date: Fri, 26 Jan 2024 16:27:01 -0600 Subject: [PATCH] fix gosec errors --- zetaclient/ethrpc/types.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zetaclient/ethrpc/types.go b/zetaclient/ethrpc/types.go index 81492e715d..107ad26598 100644 --- a/zetaclient/ethrpc/types.go +++ b/zetaclient/ethrpc/types.go @@ -121,9 +121,13 @@ func (proxy *proxyBlockWithoutTransactions) toBlock() Block { Difficulty: big.Int(proxy.Difficulty), TotalDifficulty: big.Int(proxy.TotalDifficulty), ExtraData: proxy.ExtraData, + // #nosec G701 - copied file from 3rd library, always in range Size: int(proxy.Size), + // #nosec G701 - copied file from 3rd library, always in range GasLimit: int(proxy.GasLimit), + // #nosec G701 - copied file from 3rd library, always in range GasUsed: int(proxy.GasUsed), + // #nosec G701 - copied file from 3rd library, always in range Timestamp: int(proxy.Timestamp), Uncles: proxy.Uncles, }