From 83df376d17c663c96c1aed8fbdda23c527389a17 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Sun, 17 May 2020 18:16:16 +0300 Subject: [PATCH] account: add missing IsStandard interop function There is a Neo.Account.IsStandard syscall, but we didn't have a wrapper for it. --- pkg/interop/account/account.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/interop/account/account.go b/pkg/interop/account/account.go index c18172eb7..f0595eec0 100644 --- a/pkg/interop/account/account.go +++ b/pkg/interop/account/account.go @@ -34,3 +34,10 @@ func GetVotes(a Account) [][]byte { func GetBalance(a Account, assetID []byte) int { return 0 } + +// IsStandard checks whether given account uses standard (CHECKSIG or +// CHECKMULTISIG) contract. It only works for deployed contracts and uses +// `Neo.Account.IsStandard` syscall internally. +func IsStandard(a Account) bool { + return false +}