def get_transaction_receipt(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_receipt( block, transaction, block.get_receipt(transaction_index), transaction_index, is_pending, )
def get_transaction_receipt(self, transaction_hash): block, transaction, transaction_index, is_pending = _get_transaction_by_hash( self.evm, transaction_hash, ) state = _get_state_by_block_hash(self.evm, block.hash) return serialize_transaction_receipt( block, transaction, state.receipts[transaction_index], transaction_index, is_pending, )