Skip to content

Commit

Permalink
✨ Add events to Sake deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Dec 9, 2024
1 parent 7204ce3 commit d0cc777
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wake/lsp/sake.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ class SakeDeployResult(SakeResult):
contract_address: Optional[str]
raw_error: Optional[str] # raw hex encoded bytes, None for Success or Halt
error: Optional[str] # user-friendly error string, None for Success
events: List[
str
] # user-friendly event strings, in correct order, excluding events from reverting subtraces
tx_receipt: Dict[str, Any]
call_trace: Dict[str, Union[Optional[str], List]]

Expand Down Expand Up @@ -651,6 +654,7 @@ def fqn_to_contract_abi(fqn: str):
return SakeDeployResult(
success=success,
error=call_trace.error_string,
events=call_trace.event_strings,
raw_error=(
tx.raw_error.data.hex()
if isinstance(tx.raw_error, UnknownTransactionRevertedError)
Expand Down

0 comments on commit d0cc777

Please sign in to comment.