diff --git a/pkg/core/state/native_state.go b/pkg/core/state/native_state.go index d551c6711..bb1d94ebf 100644 --- a/pkg/core/state/native_state.go +++ b/pkg/core/state/native_state.go @@ -125,6 +125,7 @@ func (s *NEOBalanceState) fromStackItem(item stackitem.Item) { votes := structItem[2].Value().([]stackitem.Item) s.Votes = make([]*keys.PublicKey, len(votes)) for i, v := range votes { + s.Votes[i] = new(keys.PublicKey) s.Votes[i].DecodeBytes(v.Value().([]byte)) } }