fix white spaces

This commit is contained in:
Rossen Krastev 2023-12-31 00:14:01 +02:00
parent 6bcb43539c
commit 201e26cedb

View file

@ -305,14 +305,14 @@ func (ec *Client) TransactionInBlock(ctx context.Context, blockHash common.Hash,
// TransactionReceipt returns the receipt of a transaction by transaction hash. // TransactionReceipt returns the receipt of a transaction by transaction hash.
// Note that the receipt is not available for pending transactions. // Note that the receipt is not available for pending transactions.
func (ec *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) { func (ec *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) {
var r *types.Receipt var r *types.Receipt
if err := ec.c.CallContext(ctx, &r, "eth_getTransactionReceipt", txHash); err != nil { if err := ec.c.CallContext(ctx, &r, "eth_getTransactionReceipt", txHash); err != nil {
return nil, err return nil, err
} }
if r == nil { if r == nil {
return nil, ethereum.NotFound return nil, ethereum.NotFound
} }
return r, nil return r, nil
} }
// SyncProgress retrieves the current progress of the sync algorithm. If there's // SyncProgress retrieves the current progress of the sync algorithm. If there's