mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-11 05:20:05 +00:00
typo and code consistency (#3651)
This commit is contained in:
parent
e6deefffe5
commit
dd47dfdf09
@ -58,10 +58,13 @@ func (api *APIImpl) GetTransactionByHash(ctx context.Context, hash common.Hash)
|
|||||||
baseFee = block.BaseFee()
|
baseFee = block.BaseFee()
|
||||||
}
|
}
|
||||||
|
|
||||||
if txn != nil {
|
// if no transaction was found then we return nil
|
||||||
return newRPCTransaction(txn, blockHash, blockNum, txnIndex, baseFee), nil
|
if txn == nil {
|
||||||
|
return nil, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
return nil, nil
|
|
||||||
|
return newRPCTransaction(txn, blockHash, blockNum, txnIndex, baseFee), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
curHeader := rawdb.ReadCurrentHeader(tx)
|
curHeader := rawdb.ReadCurrentHeader(tx)
|
||||||
@ -81,7 +84,7 @@ func (api *APIImpl) GetTransactionByHash(ctx context.Context, hash common.Hash)
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// if no transactiion was found in the txpool then we return nil and an error warning that we didn't find the transaction by the hash
|
// if no transaction was found in the txpool then we return nil and an error warning that we didn't find the transaction by the hash
|
||||||
if txn == nil {
|
if txn == nil {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user