Skip to content

Commit 83cd44a

Browse files
committed
dcpEth$$Address::address is removed in dcp-client, reflect it in bifrost2 tests
1 parent 33f9e78 commit 83cd44a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

tests/test_api/test_wallet.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ def test_smoke_keystore_address(self):
1212

1313
address = ks.address
1414
self.assertTrue(isinstance(address, dcp.wallet.Address))
15-
self.assertTrue(address.eq(address.address))
15+
self.assertTrue(address.eq(address.toString()))
1616

1717
def test_smoke_async_get(self):
1818
ks1 = dcp.wallet.get()
1919
ks2 = asyncio.run(dcp.wallet.aio.get())
2020

21-
# TODO: we can't pass the address in since ks2.address is python... need to fix.
22-
self.assertTrue(ks1.address.eq(ks2.address.address))
21+
self.assertTrue(ks1.address.eq(ks2.address))
2322

2423

2524
if __name__ == '__main__':

tests/test_js_wrappers/test_js_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_wrapping_js_instance(self):
9595
address = pm.new(Address)(hex_code)
9696
py_obj = class_manager.wrap_obj(address)
9797

98-
self.assertTrue(py_obj.address == hex_code)
98+
self.assertTrue(py_obj.eq(hex_code))
9999

100100
self.assertTrue(isinstance(py_obj, dcp.wallet.Address))
101101

0 commit comments

Comments
 (0)