Skip to content

Commit

Permalink
Close #1696
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang committed Jun 12, 2020
1 parent 4ee9ac1 commit be28d77
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 be28d77

Please sign in to comment.