humanprotocol / hmt-escrow

A Python 3 library to launch escrow contracts onto the HUMAN network.
MIT License
24 stars 42 forks source link

Get escrow address from tx_receipt #368

Closed alidzm closed 2 years ago

alidzm commented 2 years ago

After creating contract to get escrow_address there used self._last_escrow_addr() what is wrong, because if someone run creation contracts in parallel self._last_escrow_addr() can return the same address for two contracts, that's wrong. The PR contains rework of wrong implementation: escrow_address takes from tx_receipt of create contract transaction.