diff --git a/modules/apps/27-interchain-accounts/controller/keeper/account.go b/modules/apps/27-interchain-accounts/controller/keeper/account.go index 4116c6c0b7d..cb38b258922 100644 --- a/modules/apps/27-interchain-accounts/controller/keeper/account.go +++ b/modules/apps/27-interchain-accounts/controller/keeper/account.go @@ -22,13 +22,13 @@ func (k Keeper) RegisterInterchainAccount(ctx sdk.Context, connectionID, owner, return err } + k.SetMiddlewareEnabled(ctx, portID, connectionID) + _, err = k.registerInterchainAccount(ctx, connectionID, portID, version) if err != nil { return err } - k.SetMiddlewareEnabled(ctx, portID, connectionID) - return nil }