Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored and ZhangTao1596 committed Jun 15, 2020
1 parent af07180 commit 0939145
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/neo/SmartContract/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ namespace Neo.SmartContract
{
public static class Helper
{
public static UInt160 GetScriptHash(this ExecutionContext context)
{
return context.GetState<ExecutionContextState>().ScriptHash;
}

public static bool IsMultiSigContract(this byte[] script)
{
return IsMultiSigContract(script, out _, out _, null);
Expand Down

0 comments on commit 0939145

Please sign in to comment.