diff --git a/chainlib/eth/unittest/base.py b/chainlib/eth/unittest/base.py index e10d11b..533c168 100644 --- a/chainlib/eth/unittest/base.py +++ b/chainlib/eth/unittest/base.py @@ -5,6 +5,7 @@ import logging # external imports import eth_tester import coincurve +from chainlib.encode import TxHexNormalizer from chainlib.connection import ( RPCConnection, error_parser, @@ -184,7 +185,8 @@ class TestRPCConnection(RPCConnection): pk_bytes = self.backend.keystore.get(tx.sender) pk = coincurve.PrivateKey(secret=pk_bytes) result_address = private_key_to_address(pk) - assert strip_0x(result_address) == strip_0x(tx.sender) + tx_normalize = TxHexNormalizer() + assert tx_normalize.wallet_address(strip_0x(result_address)) == tx_normalize.wallet_address(strip_0x(tx.sender)) def sign_transaction(self, tx, passphrase=''): diff --git a/requirements.txt b/requirements.txt index 3de6992..ee71e7d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,5 +3,5 @@ pysha3==1.0.2 hexathon~=0.0.1a8 websocket-client==0.57.0 potaahto~=0.0.1a1 -chainlib==0.0.9a10 +chainlib==0.0.9rc1 confini>=0.4.1a1,<0.5.0 diff --git a/setup.cfg b/setup.cfg index 5262482..0e20f3a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib-eth -version = 0.0.9a13 +version = 0.0.9rc3 description = Ethereum implementation of the chainlib interface author = Louis Holbrook author_email = dev@holbrook.no