Skip to content

Commit

Permalink
Assert balances after transfer test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dowlandaiello committed Jul 18, 2024
1 parent a630119 commit ea74b52
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions local-interchaintest/tests/transfer_osmosis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
from src.contracts.route import Route, Status, Leg
from src.contracts.auction import AuctionProvider
from src.scheduler import Ctx
from src.util import ContractInfo
from src.util import ContractInfo, try_multiple_clients
from src.util import custom_neutron_network_config
import aiohttp
from cosmpy.aerial.client import LedgerClient
from cosmpy.aerial.wallet import LocalWallet
from src.util import custom_neutron_network_config
from cosmpy.crypto.address import Address


async def main() -> None:
Expand Down Expand Up @@ -64,6 +65,22 @@ async def main() -> None:
1,
)

balance_after_resp = try_multiple_clients(
ctx.clients[list(ctx.deployments["pools"]["osmosis"].keys())[0]],
lambda client: client.query_bank_balance(
Address(
ctx.wallet.public_key(),
prefix=list(ctx.deployments["pools"]["osmosis"].values())[0][
"chain_prefix"
],
),
ctx.cli_args["base_denom"],
),
)

assert balance_after_resp
assert balance_after_resp == 1


if __name__ == "__main__":
loop = asyncio.get_event_loop()
Expand Down

0 comments on commit ea74b52

Please sign in to comment.