diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 2eb4dee3c0..c8ac08586b 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1648,7 +1648,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()