Skip to content

Commit 52e1fb5

Browse files
committed
test(osmosis): osmosis_get_address already returns the string
It is decorated @field('address'), so .address on the result raised AttributeError. Matches how test_msg_cosmos_getaddress uses its equivalent.
1 parent 0594d57 commit 52e1fb5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_msg_osmosis_signtx.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ def _address(self):
5757
include send message in transaction". Deriving it keeps the fixture
5858
honest and makes these self-sends.
5959
"""
60+
# osmosis_get_address is decorated @field('address'), so it already
61+
# returns the string rather than the OsmosisAddress message.
6062
return self.client.osmosis_get_address(
6163
address_n=parse_path(DEFAULT_BIP32_PATH)
62-
).address
64+
)
6365

6466
def _sign(self, amount, denom='uosmo'):
6567
addr = self._address()

0 commit comments

Comments
 (0)