Skip to content

Commit

Permalink
fix: gosec lint issues (zeta-chain#997)
Browse files Browse the repository at this point in the history
* nosec

* remove pointer reference loop
  • Loading branch information
lumtis authored Aug 18, 2023
1 parent fe0207a commit d2204d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/rpctest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
)

var (
// #nosec
ZetaEthPriv = "9D00E4D7A8A14384E01CD90B83745BCA847A66AD8797A9904A200C28C2648E64"
SystemContractAddress = "0x91d18e54DAf4F677cB28167158d6dd21F6aB3921"
)
Expand Down
1 change: 1 addition & 0 deletions x/crosschain/client/querytests/intx_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func (s *CliTestSuite) TestShowInTxHashToCctx() {
var resp types.QueryGetInTxHashToCctxResponse
s.Require().NoError(s.network.Config.Codec.UnmarshalJSON(out.Bytes(), &resp))
s.Require().NotNil(resp.InTxHashToCctx)
tc := tc
s.Require().Equal(nullify.Fill(&tc.obj),
nullify.Fill(&resp.InTxHashToCctx),
)
Expand Down
1 change: 1 addition & 0 deletions x/observer/client/querytests/permission_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func (s *CliTestSuite) TestShowPermissionFlags() {
var resp types.QueryGetPermissionFlagsResponse
s.Require().NoError(s.network.Config.Codec.UnmarshalJSON(out.Bytes(), &resp))
s.Require().NotNil(resp.PermissionFlags)
tc := tc
s.Require().Equal(nullify.Fill(&tc.obj),
nullify.Fill(&resp.PermissionFlags),
)
Expand Down
1 change: 1 addition & 0 deletions zetaclient/config/config_mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const (
)

const (
// #nosec
TssTestPrivkey = "2082bc9775d6ee5a05ef221a9d1c00b3cc3ecb274a4317acc0a182bc1e05d1bb"
TssTestAddress = "0xE80B6467863EbF8865092544f441da8fD3cF6074"
)
Expand Down

0 comments on commit d2204d9

Please sign in to comment.