Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Fixed wrong instanceof for address type (from int to long) #255

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion ethereum/abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def encode_single(arg, base, sub):
# Addresses: address (== hash160)
elif base == 'address':
assert sub == ''
if isinstance(arg, int):
if isinstance(arg, long):
normal_args = zpad(encode_int(arg), 32)
elif len(arg) == 20:
normal_args = zpad(arg, 32)
Expand Down