vm: make IntToBytes, BytesToInt public
VM serialization format should be able to be reused.
This commit is contained in:
parent
9037cabe1e
commit
f15ceff592
6 changed files with 16 additions and 16 deletions
|
@ -81,7 +81,7 @@ func (e *Element) BigInt() *big.Int {
|
|||
return big.NewInt(0)
|
||||
default:
|
||||
b := t.Value().([]uint8)
|
||||
return bytesToInt(b)
|
||||
return BytesToInt(b)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue