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

Commit

Permalink
fix for readonly bytearray issue with murmur library
Browse files Browse the repository at this point in the history
  • Loading branch information
localhuman committed Sep 21, 2017
1 parent 606103a commit 925dc71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/Core/State/StorageKey.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, script_hash=None, key=None):
self.Key = key

def _murmur(self):
return mmh3.hash(self.Key)
return mmh3.hash(bytes(self.Key))

def GetHashCode(self):
return abs(self.ScriptHash.GetHashCode() + self._murmur())
Expand Down

0 comments on commit 925dc71

Please sign in to comment.