Skip to content

Commit

Permalink
Add InvocationTransaction to SmartContract framework
Browse files Browse the repository at this point in the history
This allows checking that a transaction is an invocation to the
same smart contract during verification phase.

Example usage: neo-project/proposals#18 (comment)
  • Loading branch information
RavenXce committed Feb 7, 2018
1 parent d1980fc commit 0812fac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Neo.SmartContract.Framework/Services/Neo/InvocationTransaction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Neo.SmartContract.Framework.Services.Neo
{
public class InvocationTransaction : Transaction
{
public extern byte[] Script
{
[Syscall("Neo.InvocationTransaction.GetScript")]
get;
}
}
}
Binary file modified Template.CSharp/Neo.ConvertTask.dll
Binary file not shown.
Binary file modified Template.VB/Neo.ConvertTask.dll
Binary file not shown.

0 comments on commit 0812fac

Please sign in to comment.