Run golangci-lint #7
Annotations
10 errors
lint:
ethwallet/ethwallet.go#L129
SA1019: bind.NewKeyedTransactor is deprecated: Use NewKeyedTransactorWithChainID instead. (staticcheck)
|
lint:
ethtest/helpers.go#L19
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
|
lint:
ethmempool/ethmempool.go#L21
field `log` is unused (unused)
|
lint:
ethcoder/merkle_proof.go#L51
Error return value of `mt.processLeaves` is not checked (errcheck)
|
lint:
ethcoder/merkle_proof_test.go#L50
Error return value of `rand.Read` is not checked (errcheck)
|
lint:
ethcoder/ethcoder.go#L15
S1017: should replace this `if` statement with an unconditional `strings.TrimPrefix` (gosimple)
|
lint:
ethcoder/solidity_pack.go#L166
S1019: should use make([]byte, size) instead (gosimple)
|
lint:
cmd/ethkit/main.go#L48
Error return value of `cmd.Help` is not checked (errcheck)
|
lint:
cmd/ethkit/block.go#L163
copylocks: call of TransactionsHash copies lock value: github.com/0xsequence/ethkit/go-ethereum/core/types.Block contains sync/atomic.Pointer[github.com/0xsequence/ethkit/go-ethereum/common.Hash] contains sync/atomic.noCopy (govet)
|
lint:
cmd/ethkit/block.go#L179
copylocks: TransactionsHash passes lock by value: github.com/0xsequence/ethkit/go-ethereum/core/types.Block contains sync/atomic.Pointer[github.com/0xsequence/ethkit/go-ethereum/common.Hash] contains sync/atomic.noCopy (govet)
|