Skip to content

Commit

Permalink
fix(app): intertx not using initialized controller (#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanchristo authored Dec 20, 2022
1 parent f0858cb commit 758d767
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,6 @@ func NewRegenApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest
app.ScopedIBCTransferKeeper,
)

app.InterTxKeeper = intertxkeeper.NewKeeper(
appCodec,
app.ICAControllerKeeper,
app.ScopedInterTxKeeper,
)

app.ICAControllerKeeper = icacontrollerkeeper.NewKeeper(
appCodec,
keys[icacontrollertypes.StoreKey],
Expand All @@ -415,6 +409,12 @@ func NewRegenApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest
app.MsgServiceRouter(),
)

app.InterTxKeeper = intertxkeeper.NewKeeper(
appCodec,
app.ICAControllerKeeper,
app.ScopedInterTxKeeper,
)

// Create IBC stacks to add to IBC router
ibcTransferModule := ibctransfer.NewIBCModule(app.IBCTransferKeeper)
ibcTransferStack := ibcfee.NewIBCMiddleware(ibcTransferModule, app.IBCFeeKeeper)
Expand Down
2 changes: 1 addition & 1 deletion x/intertx/client/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func getInterchainAccountCmd() *cobra.Command {
Use: "ica [owner-account] [connection-id]",
Short: "query the interchain account address",
Long: "query the interchain account address associated with the owner address and connection id.",
Example: "regen q intertx ica regen1drn830y2l24pne08t7k7p7z6zms3x8p8zc3u0h channel-5",
Example: "regen q intertx ica regen1drn830y2l24pne08t7k7p7z6zms3x8p8zc3u0h connection-0",
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
Expand Down
4 changes: 2 additions & 2 deletions x/intertx/client/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func getRegisterAccountCmd() *cobra.Command {
Short: "register an interchain account",
Long: "register an interchain account for the chain corresponding to the connection-id.",
Example: `
regen tx intertx register --connection-id channel-10
regen tx intertx register --connection-id channel-10 --version '{"version":"ics27-1","tx_type":"sdk_multi_msg","encoding":"proto3","host_connection_id":"connection-0","controller_connection_id":"connection-0","address":"regen14zs2x38lmkw4eqvl3lpml5l8crzaxn6mpvh79z"}'
regen tx intertx register --connection-id connection-0
regen tx intertx register --connection-id connection-0 --version '{"version":"ics27-1","tx_type":"sdk_multi_msg","encoding":"proto3","host_connection_id":"connection-0","controller_connection_id":"connection-0","address":"regen14zs2x38lmkw4eqvl3lpml5l8crzaxn6mpvh79z"}'
`,
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
Expand Down

0 comments on commit 758d767

Please sign in to comment.