Skip to content

Commit

Permalink
fix: query
Browse files Browse the repository at this point in the history
  • Loading branch information
banteg authored and antazoey committed Aug 21, 2024
1 parent 1c8fbba commit 31599b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ape_etherscan/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ def get_contract_creation_receipt(
elif len(creation_data) != 1:
raise ValueError("Expecting single creation data.")

receipt = self.chain_manager.get_receipt(creation_data.txHash)
receipt = self.chain_manager.get_receipt(creation_data[0].txHash)
yield ContractCreation(
txn_hash=creation_data.txHash,
txn_hash=receipt.txn_hash,
deploy_block=receipt.block_number,
deployer=receipt.sender,
# factory is not implemented by this query provider
Expand Down

0 comments on commit 31599b3

Please sign in to comment.