Skip to content

Commit

Permalink
feat: add creation.receipt property
Browse files Browse the repository at this point in the history
  • Loading branch information
banteg committed Apr 12, 2024
1 parent 2a2fd72 commit f50871a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ape/api/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,16 @@ class ContractCreationQuery(_BaseQuery):
contract: AddressType


class ContractCreation(BaseModel):
class ContractCreation(BaseModel, BaseInterface):
txn_hash: str
block: int
deployer: AddressType
factory: Optional[AddressType] = None

@property
def receipt(self):
return self.chain_manager.get_receipt(self.txn_hash)


class ContractEventQuery(_BaseBlockQuery):
"""
Expand Down

0 comments on commit f50871a

Please sign in to comment.