From 654fc371fd022745252b0d7b71b1f6ecc77fe017 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 20 Oct 2021 12:43:30 +0300 Subject: [PATCH] [#142] tests: fix container owner offset Signed-off-by: Evgenii Stratonikov --- tests/container_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/container_test.go b/tests/container_test.go index f0c3e37..92bc505 100644 --- a/tests/container_test.go +++ b/tests/container_test.go @@ -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 {