Skip to content

Commit

Permalink
refactor: use private
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jan 6, 2025
1 parent 6014797 commit 869739d
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions ape_titanoboa/transactions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import TYPE_CHECKING, Any, Optional
from typing import TYPE_CHECKING

from ape_ethereum.transactions import DynamicFeeTransaction, Receipt
from eth.exceptions import Revert

if TYPE_CHECKING:
from eth_pydantic_types import HexBytes
Expand All @@ -12,8 +11,20 @@ class BoaReceipt(Receipt):
A receipt that includes the computation.
"""

computation: Any
revert: Optional[Revert] = None
def __init__(self, **kwargs):
computation = kwargs.pop("computation")
revert = kwargs.pop("revert")
super().__init__(**kwargs)
self._computation = computation
self._revert = revert

@property
def computation(self):
return self._computation

@property
def revert(self):
return self._revert


class BoaTransaction(DynamicFeeTransaction):
Expand Down

0 comments on commit 869739d

Please sign in to comment.