Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Sep 27, 2024
1 parent 235ca4d commit 157ede5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions e2e/testing/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ func NewTestChain(t *testing.T, chainIdx int, opts ...interface{}) *TestChain {

// Split options by groups (each group is applied in a different init step)
var chainCfgOpts []TestChainConfigOption
var consensusParamsOpts []TestChainConsensusParamsOption
//var consensusParamsOpts []TestChainConsensusParamsOption
var genStateOpts []TestChainGenesisOption
for i, opt := range opts {
switch opt := opt.(type) {
case TestChainConfigOption:
chainCfgOpts = append(chainCfgOpts, opt)
case TestChainConsensusParamsOption:
consensusParamsOpts = append(consensusParamsOpts, opt)
// case TestChainConsensusParamsOption:
// consensusParamsOpts = append(consensusParamsOpts, opt)
case TestChainGenesisOption:
genStateOpts = append(genStateOpts, opt)
default:
Expand Down
4 changes: 2 additions & 2 deletions e2e/testing/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

abci "github.com/tendermint/tendermint/abci/types"
"github.com/cosmos/cosmos-sdk/codec"
abci "github.com/tendermint/tendermint/abci/types"
"google.golang.org/grpc"

"github.com/dymensionxyz/rollapp-wasm/app"
Expand All @@ -27,7 +27,7 @@ func (c grpcClient) Invoke(ctx context.Context, method string, args, reply inter
})

if resp.Code != abci.CodeTypeOK {
return fmt.Errorf(resp.Log)
return fmt.Errorf("query response: %s", resp.Log)
}

c.app.AppCodec().MustUnmarshal(resp.Value, reply.(codec.ProtoMarshaler))
Expand Down

0 comments on commit 157ede5

Please sign in to comment.