[#142] tests: fix container owner offset

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-10-20 12:43:30 +03:00 committed by Alex Vanin
parent 8c8e4a6d85
commit 654fc371fd

View file

@ -51,8 +51,9 @@ func prepareContainerContract(t *testing.T, bc *core.Blockchain) (util.Uint160,
return deployContainerContract(t, bc, ctrNetmap.Hash, ctrBalance.Hash, addrNNS), balHash
}
func setContainerOwner(c []byte, owner *wallet.Account) {
copy(c[7:], owner.Contract.ScriptHash().BytesBE())
func setContainerOwner(c []byte, acc *wallet.Account) {
owner, _ := base58.Decode(acc.Address)
copy(c[6:], owner)
}
type testContainer struct {