Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exception to ApplicationExecuted #1885

Merged
merged 3 commits into from
Aug 29, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/neo/Ledger/Blockchain.ApplicationExecuted.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Neo.SmartContract;
using Neo.VM;
using Neo.VM.Types;
using System;
using System.Linq;

namespace Neo.Ledger
Expand All @@ -13,6 +14,7 @@ partial class ApplicationExecuted
public Transaction Transaction;
public TriggerType Trigger { get; internal set; }
public VMState VMState { get; internal set; }
public Exception Exception { get; internal set; }
public long GasConsumed { get; internal set; }
public StackItem[] Stack { get; internal set; }
public NotifyEventArgs[] Notifications { get; internal set; }
Expand All @@ -23,6 +25,7 @@ internal ApplicationExecuted(ApplicationEngine engine)
Trigger = engine.Trigger;
VMState = engine.State;
GasConsumed = engine.GasConsumed;
Exception = engine.FaultException;
Stack = engine.ResultStack.ToArray();
Notifications = engine.Notifications.ToArray();
}
Expand Down