mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-04 09:02:28 +00:00
remove error on NewBoolean
Expose underlying with Getter on Boolean StackItem Add Equals method for ByteArray
This commit is contained in:
parent
80fd427517
commit
48413900ca
3 changed files with 19 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue