good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit dd47dfdf authored by Enrique Jose  Avila Asapche's avatar Enrique Jose Avila Asapche Committed by GitHub
Browse files

typo and code consistency (#3651)

parent e6deefff
No related branches found
No related tags found
No related merge requests found
......@@ -58,10 +58,13 @@ func (api *APIImpl) GetTransactionByHash(ctx context.Context, hash common.Hash)
baseFee = block.BaseFee()
}
if txn != nil {
return newRPCTransaction(txn, blockHash, blockNum, txnIndex, baseFee), nil
// if no transaction was found then we return nil
if txn == nil {
return nil, nil
}
return nil, nil
return newRPCTransaction(txn, blockHash, blockNum, txnIndex, baseFee), nil
}
curHeader := rawdb.ReadCurrentHeader(tx)
......@@ -81,7 +84,7 @@ func (api *APIImpl) GetTransactionByHash(ctx context.Context, hash common.Hash)
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 {
return nil, nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment