From 7c1a54b7258776015ba493bba583d3f4befc4154 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 +}