From 5e55ce845bc4b95cba077d16093741df626fa5ef Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 18 Nov 2024 13:15:43 +0100 Subject: [PATCH] updates --- server/v2/cometbft/grpc.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/v2/cometbft/grpc.go b/server/v2/cometbft/grpc.go index 44781a0868a2..f5aeba0ec5c4 100644 --- a/server/v2/cometbft/grpc.go +++ b/server/v2/cometbft/grpc.go @@ -92,17 +92,17 @@ func (t txServer[T]) BroadcastTx(ctx context.Context, req *txtypes.BroadcastTxRe // GetBlockWithTxs implements tx.ServiceServer. func (t txServer[T]) GetBlockWithTxs(context.Context, *txtypes.GetBlockWithTxsRequest) (*txtypes.GetBlockWithTxsResponse, error) { - panic("unimplemented") + return nil, status.Error(codes.Unimplemented, "not implemented") } // GetTx implements tx.ServiceServer. func (t txServer[T]) GetTx(context.Context, *txtypes.GetTxRequest) (*txtypes.GetTxResponse, error) { - panic("unimplemented") + return nil, status.Error(codes.Unimplemented, "not implemented") } // GetTxsEvent implements tx.ServiceServer. func (t txServer[T]) GetTxsEvent(context.Context, *txtypes.GetTxsEventRequest) (*txtypes.GetTxsEventResponse, error) { - panic("unimplemented") + return nil, status.Error(codes.Unimplemented, "not implemented") } // Simulate implements tx.ServiceServer. @@ -161,22 +161,22 @@ func (t txServer[T]) Simulate(ctx context.Context, req *txtypes.SimulateRequest) // TxDecode implements tx.ServiceServer. func (t txServer[T]) TxDecode(context.Context, *txtypes.TxDecodeRequest) (*txtypes.TxDecodeResponse, error) { - panic("unimplemented") + return nil, status.Error(codes.Unimplemented, "not implemented") } // TxDecodeAmino implements tx.ServiceServer. func (t txServer[T]) TxDecodeAmino(context.Context, *txtypes.TxDecodeAminoRequest) (*txtypes.TxDecodeAminoResponse, error) { - panic("unimplemented") + return nil, status.Error(codes.Unimplemented, "not implemented") } // TxEncode implements tx.ServiceServer. func (t txServer[T]) TxEncode(context.Context, *txtypes.TxEncodeRequest) (*txtypes.TxEncodeResponse, error) { - panic("unimplemented") + return nil, status.Error(codes.Unimplemented, "not implemented") } // TxEncodeAmino implements tx.ServiceServer. func (t txServer[T]) TxEncodeAmino(context.Context, *txtypes.TxEncodeAminoRequest) (*txtypes.TxEncodeAminoResponse, error) { - panic("unimplemented") + return nil, status.Error(codes.Unimplemented, "not implemented") } var _ txtypes.ServiceServer = txServer[transaction.Tx]{}