Ejemplo n.º 1
0
 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,
     )
Ejemplo n.º 2
0
 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,
     )