mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix white spaces
This commit is contained in:
parent
6bcb43539c
commit
201e26cedb
1 changed files with 8 additions and 8 deletions
|
|
@ -305,14 +305,14 @@ func (ec *Client) TransactionInBlock(ctx context.Context, blockHash common.Hash,
|
|||
// TransactionReceipt returns the receipt of a transaction by transaction hash.
|
||||
// Note that the receipt is not available for pending transactions.
|
||||
func (ec *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) {
|
||||
var r *types.Receipt
|
||||
if err := ec.c.CallContext(ctx, &r, "eth_getTransactionReceipt", txHash); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if r == nil {
|
||||
return nil, ethereum.NotFound
|
||||
}
|
||||
return r, nil
|
||||
var r *types.Receipt
|
||||
if err := ec.c.CallContext(ctx, &r, "eth_getTransactionReceipt", txHash); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if r == nil {
|
||||
return nil, ethereum.NotFound
|
||||
}
|
||||
return r, nil
|
||||
}
|
||||
|
||||
// SyncProgress retrieves the current progress of the sync algorithm. If there's
|
||||
|
|
|
|||
Loading…
Reference in a new issue