Skip to content

Commit

Permalink
make lint is now running with no errors. so linting issues are good now
Browse files Browse the repository at this point in the history
  • Loading branch information
CJPotter10 committed Jun 6, 2024
1 parent 3c8a568 commit 520b2f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions x/reporter/keeper/distribution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ import (
"testing"
"time"

"cosmossdk.io/collections"
"cosmossdk.io/math"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
keepertest "github.com/tellor-io/layer/testutil/keeper"
"github.com/tellor-io/layer/testutil/sample"
"github.com/tellor-io/layer/x/reporter/types"

"cosmossdk.io/collections"
"cosmossdk.io/math"

simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
sdk "github.com/cosmos/cosmos-sdk/types"
)

func TestDivvyingTips(t *testing.T) {
Expand All @@ -26,7 +28,6 @@ func TestDivvyingTips(t *testing.T) {
updatedAt := time.Now().UTC()
commission := types.NewCommissionWithTime(types.DefaultMinCommissionRate, types.DefaultMinCommissionRate.MulInt(math.NewInt(2)), types.DefaultMinCommissionRate, updatedAt)
reporter1 := types.NewOracleReporter(addr.String(), math.NewInt(2000*1e6), &commission)

Check failure on line 30 in x/reporter/keeper/distribution_test.go

View workflow job for this annotation

GitHub Actions / build

not enough arguments in call to types.NewOracleReporter

Check failure on line 30 in x/reporter/keeper/distribution_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

not enough arguments in call to types.NewOracleReporter
//reporter2 := types.NewOracleReporter(addr2.String(), math.NewInt(1000*1e6), &commission)
ctx = ctx.WithBlockHeight(height)

err := k.Reporters.Set(ctx, addr, reporter1)
Expand Down
3 changes: 2 additions & 1 deletion x/reporter/keeper/jail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import (
"testing"
"time"

"cosmossdk.io/math"
"github.com/stretchr/testify/require"
keepertest "github.com/tellor-io/layer/testutil/keeper"
"github.com/tellor-io/layer/testutil/sample"
"github.com/tellor-io/layer/x/reporter/types"

"cosmossdk.io/math"
)

func TestJailReporter(t *testing.T) {
Expand Down

0 comments on commit 520b2f2

Please sign in to comment.