Skip to content

Commit

Permalink
Fix getTransactions method internal error (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio authored Jun 11, 2024
1 parent ec4504e commit f0799bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/soroban-rpc/internal/methods/get_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0799bf

Please sign in to comment.