This commit is contained in:
SOUHAILA SERBOUT 2026-05-21 21:55:10 -07:00 committed by GitHub
commit e18d0a71d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1629,7 +1629,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()