vm: move IntToBytes and BytesToInt to emit package

This commit is contained in:
Evgenii Stratonikov 2020-02-03 18:05:13 +03:00
parent 4d8a3a359b
commit c821e1c4c8
6 changed files with 15 additions and 7 deletions

View file

@ -5,6 +5,8 @@ import (
"errors"
"fmt"
"math/big"
"github.com/CityOfZion/neo-go/pkg/vm/emit"
)
// Stack implementation for the neo-go virtual machine. The stack implements
@ -81,7 +83,7 @@ func (e *Element) BigInt() *big.Int {
return big.NewInt(0)
default:
b := t.Value().([]uint8)
return BytesToInt(b)
return emit.BytesToInt(b)
}
}