Skip to content

Commit

Permalink
Move SetMiddlewareEnabled call ordering (cosmos#2283)
Browse files Browse the repository at this point in the history
  • Loading branch information
chatton authored Sep 23, 2022
1 parent 8ea5287 commit 25d62f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 25d62f0

Please sign in to comment.