Skip to content

Commit

Permalink
fix: status
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 24, 2024
1 parent e09a191 commit 5bbe0b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ape_ethereum/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ def send_transaction(self, txn: TransactionAPI) -> ReceiptAPI:
block_number=-1, # Not in a block.
error=vm_err,
required_confirmations=required_confirmations,
status=TransactionStatusEnum.NO_ERROR,
status=TransactionStatusEnum.FAILING if vm_err else TransactionStatusEnum.NO_ERROR,
txn_hash=txn_hash,
**txn_data,
)
Expand Down
4 changes: 3 additions & 1 deletion src/ape_test/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,9 @@ def send_transaction(self, txn: "TransactionAPI") -> "ReceiptAPI":
"error": vm_err,
"provider": self,
"required_confirmations": required_confirmations,
"status": TransactionStatusEnum.NO_ERROR,
"status": (
TransactionStatusEnum.FAILING if vm_err else TransactionStatusEnum.NO_ERROR
),
"txn_hash": txn_hash,
}
receipt = self.network.ecosystem.decode_receipt(receipt_data)
Expand Down

0 comments on commit 5bbe0b6

Please sign in to comment.