Skip to content

Commit

Permalink
cleanup unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
antstalepresh committed Jul 4, 2024
1 parent 598d4bb commit c774ff0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 24 deletions.
2 changes: 0 additions & 2 deletions x/onion/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import (
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
)

var FlagSplit = "split"

// NewTxCmd returns a root CLI command handler for all x/bank transaction commands.
func NewTxCmd() *cobra.Command {
txCmd := &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion x/onion/keeper/ante_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (s *KeeperTestSuite) TestExecuteAnte() {
// check account set in account module
acc1 := s.App.AccountKeeper.GetAccount(s.Ctx, addr1)
s.Require().NotNil(acc1)
// check sequence increased
// check sequence increase
seq, err := s.App.OnionKeeper.GetSequence(s.Ctx, addr1.String())
s.Require().NoError(err)
s.Require().Equal(seq.Sequence, uint64(1))
Expand Down
20 changes: 0 additions & 20 deletions x/onion/types/errors.go
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@
package types

import (
errorsmod "cosmossdk.io/errors"
)

var (
ErrBadMetadataFormatMsg = "wasm metadata not properly formatted for: '%v'. %s"
ErrBadExecutionMsg = "cannot execute contract: %v"

ErrMsgValidation = errorsmod.Register("wasm-hooks", 2, "error in wasmhook message validation")
ErrMarshaling = errorsmod.Register("wasm-hooks", 3, "cannot marshal the ICS20 packet")
ErrInvalidPacket = errorsmod.Register("wasm-hooks", 4, "invalid packet data")
ErrBadResponse = errorsmod.Register("wasm-hooks", 5, "cannot create response")
ErrWasmError = errorsmod.Register("wasm-hooks", 6, "wasm error")
ErrBadSender = errorsmod.Register("wasm-hooks", 7, "bad sender")
ErrAckFromContract = errorsmod.Register("wasm-hooks", 8, "contract returned error ack")
ErrAsyncAckNotAllowed = errorsmod.Register("wasm-hooks", 9, "contract not allowed to send async acks")
ErrAckPacketMismatch = errorsmod.Register("wasm-hooks", 10, "packet does not match the expected packet")
ErrInvalidContractAddr = errorsmod.Register("wasm-hooks", 11, "invalid contract address")
)
3 changes: 2 additions & 1 deletion x/onion/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package types
// DefaultGenesis returns the default GenesisState for the concentrated-liquidity module.
func DefaultGenesis() *GenesisState {
return &GenesisState{
Params: DefaultParams(),
Params: DefaultParams(),
Sequences: []OnionSequence{},
}
}

Expand Down

0 comments on commit c774ff0

Please sign in to comment.