From e220c514477d68fcf04f50e6c20f9bce0d688fb4 Mon Sep 17 00:00:00 2001 From: souhailaS Date: Wed, 18 Feb 2026 17:31:41 +0100 Subject: [PATCH] ethapi: wrap transaction submission errors with txValidationError --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 5fbe7db694..37ede851fd 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1553,7 +1553,7 @@ func SubmitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c return common.Hash{}, errors.New("only replay-protected (EIP-155) transactions allowed over RPC") } if err := b.SendTx(ctx, tx); err != nil { - return common.Hash{}, err + return common.Hash{}, txValidationError(err) } // Print a log with full tx details for manual investigations and interventions head := b.CurrentBlock()