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

Commit

Permalink
fix for storage.get
Browse files Browse the repository at this point in the history
  • Loading branch information
localhuman committed Oct 7, 2017
1 parent cc6238f commit 263b261
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion neo/SmartContract/StateReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,11 @@ def Storage_Get(self, engine):
item = self._storages.TryGet(storage_key.GetHashCodeBytes())

keystr = key
valStr = bytearray(item.Value)

valStr = bytearray(0)

if item.Value is not None:
valStr = bytearray(item.Value)

if len(key) == 20:
keystr = Crypto.ToAddress(UInt160(data=key))
Expand Down

0 comments on commit 263b261

Please sign in to comment.