Skip to content

Commit

Permalink
upgrade iban.py for eth-utils v1b2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
carver committed Feb 21, 2018
1 parent b0c2b87 commit 5ce14b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions web3/iban.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
import re

from eth_utils import (
coerce_args_to_text,
is_string,
pad_left,
to_checksum_address,
)

Expand All @@ -14,7 +12,7 @@


def pad_left_hex(value, num_bytes):
return pad_left(value, num_bytes * 2, '0')
return value.rjust(num_bytes * 2, '0')


def iso13616Prepare(iban):
Expand Down Expand Up @@ -88,7 +86,6 @@ def __get__(self, instance, owner):
return functools.partial(self.validate, instance._iban)

@staticmethod
@coerce_args_to_text
def validate(iban_address):
if not is_string(iban_address):
return False
Expand Down

0 comments on commit 5ce14b3

Please sign in to comment.