Skip to content

Commit

Permalink
Add exception to ApplicationExecuted (neo-project#1885)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored and Shawn committed Jan 8, 2021
1 parent 18730eb commit e2e2203
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit e2e2203

Please sign in to comment.