Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

fix Array.GetBoolean() #977

Merged
merged 1 commit into from
Jul 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ All notable changes to this project are documented in this file.
- Port caching layer from neo-cli
- Fix ``Contract_Migrate`` sycall
- Fix ``BigInteger`` modulo for negative divisor values
- Fix ``GetBoolean()`` for ``Array`` stackitem


[0.8.4] 2019-02-14
Expand Down
2 changes: 1 addition & 1 deletion neo/VM/InteropService.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def GetBigInteger(self):
raise Exception("Not Supported")

def GetBoolean(self):
return len(self._array) > 0
return True

def GetByteArray(self):
logger.debug("Trying to get bytearray integer %s " % self)
Expand Down