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) }