vm: revert bool -> []byte conversion to NEO 2.x

This commit is contained in:
Evgenii Stratonikov 2019-11-06 12:15:48 +03:00
parent 5544ff1768
commit 4c688355bc
2 changed files with 6 additions and 2 deletions

View file

@ -127,7 +127,9 @@ func (e *Element) Bytes() []byte {
if t.value {
return []byte{1}
}
return []byte{0}
// return []byte{0}
// FIXME revert when NEO 3.0 https://github.com/nspcc-dev/neo-go/issues/477
return []byte{}
default:
panic("can't convert to []byte: " + t.String())
}