emit: fix Int to serialize integers in correct format

Related #605, #623.
This commit is contained in:
Evgenii Stratonikov 2020-02-03 18:06:39 +03:00
parent c821e1c4c8
commit 1400ecfdde

View file

@ -48,7 +48,7 @@ func Int(w *bytes.Buffer, i int64) error {
}
bInt := big.NewInt(i)
val := util.ArrayReverse(bInt.Bytes())
val := IntToBytes(bInt)
return Bytes(w, val)
}