From 1400ecfddecd1e0af269c782c89b9d4b732767be Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 3 Feb 2020 18:06:39 +0300 Subject: [PATCH] emit: fix Int to serialize integers in correct format Related #605, #623. --- pkg/vm/emit/emit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/vm/emit/emit.go b/pkg/vm/emit/emit.go index 96aa09063..3fb9e99b3 100644 --- a/pkg/vm/emit/emit.go +++ b/pkg/vm/emit/emit.go @@ -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) }