Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MissingNO57 committed Aug 1, 2023
1 parent cfe3c51 commit b6401e1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package app

import (
"fmt"
"github.com/cosmos/cosmos-sdk/x/verification"
"io"
"net/http"
"os"
Expand Down Expand Up @@ -178,7 +177,6 @@ var (
transfer.AppModuleBasic{},
vesting.AppModuleBasic{},
wasm.AppModuleBasic{},
verification.AppModuleBasic{},
)

// module account permissions
Expand Down Expand Up @@ -482,7 +480,6 @@ func New(
params.NewAppModule(app.ParamsKeeper),
transferModule,
wasm.NewAppModule(appCodec, &app.WasmKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper),
verification.NewAppModule(appCodec),
)

// During begin block slashing happens after distribution.BeginBlocker so that
Expand Down
5 changes: 5 additions & 0 deletions app/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package app

import (
"github.com/cosmos/cosmos-sdk/std"
verificationtypes "github.com/cosmos/cosmos-sdk/x/verification/types"
"github.com/fetchai/fetchd/app/params"
)

Expand All @@ -12,5 +13,9 @@ func MakeEncodingConfig() params.EncodingConfig {
std.RegisterInterfaces(encodingConfig.InterfaceRegistry)
ModuleBasics.RegisterLegacyAminoCodec(encodingConfig.Amino)
ModuleBasics.RegisterInterfaces(encodingConfig.InterfaceRegistry)

// Register custom verification type
verificationtypes.RegisterInterfaces(encodingConfig.InterfaceRegistry)

return encodingConfig
}
5 changes: 5 additions & 0 deletions cmd/fetchd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/cosmos/cosmos-sdk/x/crisis"
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
verificationcmd "github.com/cosmos/cosmos-sdk/x/verification/client/cli"
"github.com/prometheus/client_golang/prometheus"
"github.com/spf13/cast"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -199,6 +200,10 @@ func txCommand() *cobra.Command {
)

app.ModuleBasics.AddTxCommands(cmd)

// Verification command
cmd.AddCommand(verificationcmd.NewTxCmd())

cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")

return cmd
Expand Down

0 comments on commit b6401e1

Please sign in to comment.