def get_transaction_by_hash(self, transaction_hash): block, transaction, transaction_index, is_pending = _get_transaction_by_hash( self.evm, transaction_hash, ) return serialize_transaction(block, transaction, transaction_index, is_pending)
def get_transaction_by_hash(self, transaction_hash): block, transaction, transaction_index = _get_transaction_by_hash( self.evm, transaction_hash, ) is_pending = block.number == self.evm.block.number return serialize_transaction(block, transaction, transaction_index, is_pending)