Skip to content

Commit

Permalink
InvokeTyped not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed May 11, 2024
1 parent b3d165c commit f9907f0
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions server/v2/stf/core_router_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,9 @@ func (m *msgRouterService) CanInvoke(ctx context.Context, typeURL string) error
// InvokeTyped execute a message and fill-in a response.
// The response must be known and passed as a parameter.
// Use InvokeUntyped if the response type is not known.
func (m *msgRouterService) InvokeTyped(
ctx context.Context,
msg, resp protoiface.MessageV1,
) error {
var err error
resp, err = m.handler(ctx, msg)
return err
func (m *msgRouterService) InvokeTyped(ctx context.Context, msg, resp protoiface.MessageV1) error {
// see https://github.com/cosmos/cosmos-sdk/pull/20349
panic("not implemented")
}

// InvokeUntyped execute a message and returns a response.
Expand Down Expand Up @@ -119,9 +115,8 @@ func (m *queryRouterService) InvokeTyped(
ctx context.Context,
req, resp protoiface.MessageV1,
) error {
var err error
resp, err = m.handler(ctx, req)
return err
// see https://github.com/cosmos/cosmos-sdk/pull/20349
panic("not implemented")
}

// InvokeUntyped execute a message and returns a response.
Expand Down

0 comments on commit f9907f0

Please sign in to comment.