vm: allow to emit int[32, 16, 8] and some of uints

This commit is contained in:
AnnaShaleva 2021-12-13 15:28:08 +03:00 committed by Anna Shaleva
parent 6b105e6d10
commit 48355ba9bf

View file

@ -82,6 +82,20 @@ func Array(w *io.BinWriter, es ...interface{}) {
Array(w, e...) Array(w, e...)
case int64: case int64:
Int(w, e) Int(w, e)
case int32:
Int(w, int64(e))
case uint32:
Int(w, int64(e))
case int16:
Int(w, int64(e))
case uint16:
Int(w, int64(e))
case int8:
Int(w, int64(e))
case uint8:
Int(w, int64(e))
case int:
Int(w, int64(e))
case *big.Int: case *big.Int:
bigInt(w, e) bigInt(w, e)
case string: case string: