From 4f56365495b8faa694be90899582dba1c58dcddf Mon Sep 17 00:00:00 2001 From: Daniel Novy Date: Fri, 1 May 2015 08:57:09 -0300 Subject: [PATCH] Fixed wrong instanceof for address type (from int to long) --- ethereum/abi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/abi.py b/ethereum/abi.py index a3a10cfdb..dfee792da 100644 --- a/ethereum/abi.py +++ b/ethereum/abi.py @@ -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)