From cbc5d90a73b61048379e8991b5a82aa08a3e7f7d Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Tue, 11 Jun 2024 06:09:57 +0200 Subject: [PATCH] Fix getTransactions method internal error --- cmd/soroban-rpc/internal/methods/get_transaction.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/soroban-rpc/internal/methods/get_transaction.go b/cmd/soroban-rpc/internal/methods/get_transaction.go index 399243e3..ad0dac59 100644 --- a/cmd/soroban-rpc/internal/methods/get_transaction.go +++ b/cmd/soroban-rpc/internal/methods/get_transaction.go @@ -105,7 +105,10 @@ func GetTransaction( log.WithError(err). WithField("hash", txHash). Errorf("failed to fetch transaction") - return response, err + return response, &jrpc2.Error{ + Code: jrpc2.InternalError, + Message: err.Error(), + } } response.ApplicationOrder = tx.ApplicationOrder