Skip to content

Commit

Permalink
add rever reason to execution trace
Browse files Browse the repository at this point in the history
  • Loading branch information
cicr99 committed Oct 25, 2023
1 parent 05b0d50 commit 8ba5736
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rpc/types_trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var _ TxnTrace = L1HandlerTxnTrace{}
type InvokeTxnTrace struct {
ValidateInvocation FnInvocation `json:"validate_invocation"`
//the trace of the __execute__ call or constructor call, depending on the transaction type (none for declare transactions)
ExecuteInvocation FnInvocation `json:"execute_invocation"`
ExecuteInvocation ExecInvocation `json:"execute_invocation"`
FeeTransferInvocation FnInvocation `json:"fee_transfer_invocation"`
StateDiff StateDiff `json:"state_diff"`
Type TransactionType `json:"type"`
Expand Down Expand Up @@ -114,3 +114,8 @@ type Trace struct {
TraceRoot TxnTrace `json:"trace_root,omitempty"`
TxnHash *felt.Felt `json:"transaction_hash,omitempty"`
}

type ExecInvocation struct {
FunctionInvocation FnInvocation `json:"function_invocation,omitempty"`
RevertReason string `json:"revert_reason,omitempty"`
}

0 comments on commit 8ba5736

Please sign in to comment.