remove error on NewBoolean

Expose underlying with Getter on Boolean StackItem
Add Equals method for ByteArray
This commit is contained in:
BlockChainDev 2019-03-16 21:44:03 +00:00
parent 80fd427517
commit 48413900ca
3 changed files with 19 additions and 4 deletions

View file

@ -85,7 +85,7 @@ func (i *Int) ByteArray() (*ByteArray, error) {
// to convert an Integer into a Boolean StackItem
func (i *Int) Boolean() (*Boolean, error) {
boolean := (i.val.Int64() != 0)
return NewBoolean(boolean)
return NewBoolean(boolean), nil
}
//Value returns the underlying big.Int