Skip to content

Commit b9648ba

Browse files
authoredOct 4, 2022
Merge branch 'main' into ali/chore-rename-icatypes-post-prefix
2 parents 960ce33 + edc4fd0 commit b9648ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎modules/core/03-connection/keeper/handshake.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ func (k Keeper) ConnOpenInit(
3232
versions = []exported.Version{version}
3333
}
3434

35-
// connection defines chain A's ConnectionEnd
3635
connectionID := k.GenerateConnectionIdentifier(ctx)
37-
connection := types.NewConnectionEnd(types.INIT, clientID, counterparty, types.ExportedVersionsToProto(versions), delayPeriod)
38-
k.SetConnection(ctx, connectionID, connection)
39-
4036
if err := k.addConnectionToClient(ctx, clientID, connectionID); err != nil {
4137
return "", err
4238
}
4339

40+
// connection defines chain A's ConnectionEnd
41+
connection := types.NewConnectionEnd(types.INIT, clientID, counterparty, types.ExportedVersionsToProto(versions), delayPeriod)
42+
k.SetConnection(ctx, connectionID, connection)
43+
4444
k.Logger(ctx).Info("connection state updated", "connection-id", connectionID, "previous-state", "NONE", "new-state", "INIT")
4545

4646
defer func() {

0 commit comments

Comments
 (0)