Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Sep 1, 2023
1 parent a27ded1 commit 4884df0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion memiavl/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func TestZeroCopy(t *testing.T) {
))

// the test tree's root hash will reference the zero-copy value
require.NoError(t, db.ApplyChangeSets([]*NamedChangeSet{
require.NoError(t, db.ApplyChangeSets([]*NamedChangeSet{
{Name: "test2", Changeset: ChangeSets[0]},
}))
_, _, err = db.Commit()
Expand Down
2 changes: 1 addition & 1 deletion x/cronos/keeper/mock/ibckeeper_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func (i IbcKeeperMock) Transfer(goCtx context.Context, msg *types.MsgTransfer) (
}

func (i IbcKeeperMock) GetDenomTrace(ctx sdk.Context, denomTraceHash tmbytes.HexBytes) (types.DenomTrace, bool) {
if denomTraceHash.String() == "6B5A664BF0AF4F71B2F0BAA33141E2F1321242FBD5D19762F541EC971ACB0865" { //nolint:gosec // test only
if denomTraceHash.String() == "6B5A664BF0AF4F71B2F0BAA33141E2F1321242FBD5D19762F541EC971ACB0865" {

Check failure on line 18 in x/cronos/keeper/mock/ibckeeper_mock.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

G101: Potential hardcoded credentials (gosec)
return types.DenomTrace{
Path: "transfer/channel-0",
BaseDenom: "basetcro",
Expand Down

0 comments on commit 4884df0

Please sign in to comment.