Skip to content

Commit

Permalink
A couple of fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vbuterin committed May 4, 2017
1 parent 7ae7622 commit ca760d4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Empty file modified .release_notify.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion ethereum/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def sign(self, key, network_id=None):
rawhash = utils.sha3(rlp.encode(self, UnsignedTransaction))
else:
assert 1 <= network_id < 2**63 - 18
rlpdata = rlp.encode(rlp.infer_sedes(self).serialize(self)[:-3] + [big_endian_to_int(network_id), b'', b''])
rlpdata = rlp.encode(rlp.infer_sedes(self).serialize(self)[:-3] + [network_id, b'', b''])
rawhash = utils.sha3(rlpdata)

key = normalize_key(key)
Expand Down
3 changes: 1 addition & 2 deletions ethereum/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
try:
import secp256k1
except ImportError:
import warning
warning.ImportWarning('could not import secp256k1')
print('could not import secp256k1')
secp256k1 = None

big_endian_to_int = lambda x: big_endian_int.deserialize(str_to_bytes(x).lstrip(b'\x00'))
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ pycryptodome>=3.3.1
scrypt
rlp>=0.4.7
https://github.com/ethereum/ethash/tarball/master
secp256k1

0 comments on commit ca760d4

Please sign in to comment.