Skip to content

Commit

Permalink
fix gosec errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie authored Jan 26, 2024
1 parent 46edcab commit 440b61d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zetaclient/ethrpc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Check failure on line 125 in zetaclient/ethrpc/types.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed (goimports)
// #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,
}
Expand Down

0 comments on commit 440b61d

Please sign in to comment.