Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Mar 24, 2020
1 parent 2925720 commit 7dc6298
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion x/auth/client/utils/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func QueryTxsByEvents(cliCtx context.CLIContext, events []string, page, limit in

prove := !cliCtx.TrustNode

resTxs, err := node.TxSearch(query, prove, page, limit)
resTxs, err := node.TxSearch(query, prove, page, limit, "")
if err != nil {
return nil, err
}
Expand Down
17 changes: 10 additions & 7 deletions x/distribution/types/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ func Test_validateAuxFuncs(t *testing.T) {
type args struct {
i interface{}
}
tests := []struct {

testCases := []struct {
name string
args args
wantErr bool
Expand All @@ -23,12 +24,14 @@ func Test_validateAuxFuncs(t *testing.T) {
{"one dec", args{sdk.NewDec(1)}, false},
{"two dec", args{sdk.NewDec(2)}, true},
}
for _, tt := range tests {
tt = tt
t.Run(tt.name, func(t *testing.T) {
require.Equal(t, tt.wantErr, validateCommunityTax(tt.args.i) != nil)
require.Equal(t, tt.wantErr, validateBaseProposerReward(tt.args.i) != nil)
require.Equal(t, tt.wantErr, validateBonusProposerReward(tt.args.i) != nil)

for _, tc := range testCases {
// tc = tc

t.Run(tc.name, func(t *testing.T) {
require.Equal(t, tc.wantErr, validateCommunityTax(tc.args.i) != nil)
require.Equal(t, tc.wantErr, validateBaseProposerReward(tc.args.i) != nil)
require.Equal(t, tc.wantErr, validateBonusProposerReward(tc.args.i) != nil)
})
}
}

0 comments on commit 7dc6298

Please sign in to comment.