Merge pull request #1804 from nspcc-dev/interop/createmultisigaccount-fix

interop: fix CreateMultisigAccount interop
This commit is contained in:
Roman Khimov 2021-03-04 12:31:28 +03:00 committed by GitHub
commit dedcab2d63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ func IsStandard(h interop.Hash160) bool {
// script using given m and a set of public keys bytes. This function uses
// `System.Contract.CreateMultisigAccount` syscall.
func CreateMultisigAccount(m int, pubs []interop.PublicKey) []byte {
return neogointernal.Syscall1("System.Contract.CreateMultisigAccount", pubs).([]byte)
return neogointernal.Syscall2("System.Contract.CreateMultisigAccount", m, pubs).([]byte)
}
// CreateStandardAccount calculates script hash of a given public key.