Skip to content

cleanup: remove connectionId logic in msg_server_submit_tx.go #1001

@riley-stride

Description

@riley-stride

I believe we can remove the below code block across msg_server_submit_tx.go since it is only used to get the connectionId. Then get the connectoinId from the hz by replacing connectionId with hostZone.connectionId.

owner := types.FormatICAAccountOwner(hostZone.ChainId, types.ICAAccountType_DELEGATION)
portID, err := icatypes.NewControllerPortID(owner)
if err != nil {
return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "%s has no associated portId", owner)
}
connectionId, err := k.GetConnectionId(ctx, portID)
if err != nil {
return errorsmod.Wrapf(sdkerrors.ErrInvalidChainID, "%s has no associated connection", portID)
}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions