Skip to content

Commit

Permalink
[R4R]feat: add error message when failing to forward tx to sequencer (#…
Browse files Browse the repository at this point in the history
…39)

* [R4R]-[SenndTx]feat: add error message when failing to forward tx to sequencer
  • Loading branch information
Tri-stone authored Feb 22, 2024
1 parent 4d05b2c commit d12aec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/api_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (b *EthAPIBackend) SendTx(ctx context.Context, tx *types.Transaction) error
return err
}
if err = b.eth.seqRPCService.CallContext(ctx, nil, "eth_sendRawTransaction", hexutil.Encode(data)); err != nil {
return fmt.Errorf("failed to forward tx to sequencer, please try again")
return fmt.Errorf("failed to forward tx to sequencer, please try again. Error message: '%w'", err)
}
if b.disableTxPool {
return nil
Expand Down

0 comments on commit d12aec3

Please sign in to comment.