From a737d473fbcb70e91dde92414265f22062951a92 Mon Sep 17 00:00:00 2001 From: Evgeniy Stratonikov Date: Fri, 5 Mar 2021 18:21:07 +0300 Subject: [PATCH] native: use `ToPreallocatedBytes` where possible --- pkg/core/native/native_neo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/native/native_neo.go b/pkg/core/native/native_neo.go index dc7868adb..17b35acdc 100644 --- a/pkg/core/native/native_neo.go +++ b/pkg/core/native/native_neo.go @@ -804,7 +804,7 @@ func (n *NEO) modifyVoterTurnout(d dao.DAO, amount *big.Int) error { } votersCount := bigint.FromBytes(si) votersCount.Add(votersCount, amount) - si = bigint.ToBytes(votersCount) + si = bigint.ToPreallocatedBytes(votersCount, si) return d.PutStorageItem(n.ID, key, si) }