manifest: add group signature length check

Refs. #1699.
This commit is contained in:
Roman Khimov 2021-02-08 15:11:31 +03:00
parent 296c7a10fc
commit e9ea89b4e3
6 changed files with 33 additions and 5 deletions

View file

@ -910,7 +910,7 @@ func TestRuntimeCheckWitness(t *testing.T) {
Hash: contractScriptHash,
NEF: *ne,
Manifest: manifest.Manifest{
Groups: []manifest.Group{{PublicKey: pk.PublicKey()}},
Groups: []manifest.Group{{PublicKey: pk.PublicKey(), Signature: make([]byte, keys.SignatureLen)}},
},
}
require.NoError(t, bc.contracts.Management.PutContractState(ic.DAO, contractState))