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

removed flexible checkwitness for 66 or 40 bytes addresses #438

Merged
merged 3 commits into from
May 31, 2018
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ All notable changes to this project are documented in this file.
- Allow ``SmartContract`` to use a hash with or without 0x prefix
- update to neo-boa v0.4.4
- Update to `neo-python-core <https://github.com/CityOfZion/neo-python-core/blob/master/HISTORY.rst>`_ v0.4.8:

- Create wallets with ``np-utils --create-wallet``
- ``BigInteger(0)`` now is ``b'\x00'``
- Create wallets with ``np-utils --create-wallet``
- ``BigInteger(0)`` now is ``b'\x00'``
- CheckWitness now only accepts 20 or 33 byte addresses



Expand Down
3 changes: 0 additions & 3 deletions neo/SmartContract/StateReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,6 @@ def Runtime_CheckWitness(self, engine):

hashOrPubkey = engine.EvaluationStack.Pop().GetByteArray()

if len(hashOrPubkey) == 66 or len(hashOrPubkey) == 40:
hashOrPubkey = binascii.unhexlify(hashOrPubkey)

result = False

if len(hashOrPubkey) == 20:
Expand Down