Skip to content

Commit

Permalink
fix: adds a -1 block_number to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwise-constructs committed Sep 12, 2024
1 parent 6068d43 commit 2c04ec9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ape_ethereum/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,12 @@ def get_receipt(

if kwargs.get("private"):
# Bail before confirmation because it won't be on chain yet.
receipt = self._create_receipt(required_confirmations=0, **txn)
data = {
"required_confirmations": 0,
"block_number": -1,
**txn,
}
receipt = self._create_receipt(**data)
return receipt.await_confirmations() # But do need to await nonce increment.

try:
Expand Down

0 comments on commit 2c04ec9

Please sign in to comment.