|
|
@ -145,7 +145,7 @@ func (ec *Client) HeaderByNumber(ctx context.Context, number *big.Int) (*types.H |
|
|
|
// TransactionByHash returns the transaction with the given hash.
|
|
|
|
// TransactionByHash returns the transaction with the given hash.
|
|
|
|
func (ec *Client) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, error) { |
|
|
|
func (ec *Client) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, error) { |
|
|
|
var tx *types.Transaction |
|
|
|
var tx *types.Transaction |
|
|
|
err := ec.c.CallContext(ctx, &tx, "eth_getTransactionByHash", hash, false) |
|
|
|
err := ec.c.CallContext(ctx, &tx, "eth_getTransactionByHash", hash) |
|
|
|
if err == nil { |
|
|
|
if err == nil { |
|
|
|
if _, r, _ := tx.SignatureValues(); r == nil { |
|
|
|
if _, r, _ := tx.SignatureValues(); r == nil { |
|
|
|
return nil, fmt.Errorf("server returned transaction without signature") |
|
|
|
return nil, fmt.Errorf("server returned transaction without signature") |
|
|
|