Skip to content

Commit

Permalink
Use guaranteed channels for deployments chain id.
Browse files Browse the repository at this point in the history
  • Loading branch information
dowlandaiello committed Jul 19, 2024
1 parent 7c227d1 commit 46e98e7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
23 changes: 13 additions & 10 deletions local-interchaintest/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,17 @@ impl<'a> TestRunner<'a> {
ctx.build_tx_create_price_oracle().send()?;
ctx.build_tx_update_auction_oracle().send()?;

let ntrn_to_osmo = ctx
.transfer_channel_ids
.get(&("neutron".into(), "osmosis".into()))
.cloned()
.unwrap();
let osmo_to_ntrn = ctx
.transfer_channel_ids
.get(&("osmosis".into(), "neutron".into()))
.cloned()
.unwrap();

util::create_deployment_file(
ctx.get_astroport_factory()?
.get(0)
Expand All @@ -239,16 +250,8 @@ impl<'a> TestRunner<'a> {
.contract_addr
.expect("missing deployed astroport factory")
.as_str(),
&self
.denom_map
.get(&("untrn".into(), "osmosis".into()))
.unwrap()
.channel_id,
&self
.denom_map
.get(&("uosmo".into(), "neutron".into()))
.unwrap()
.channel_id,
&ntrn_to_osmo,
&osmo_to_ntrn,
)?;
util::create_arbs_file()?;
util::create_netconfig()?;
Expand Down
2 changes: 1 addition & 1 deletion local-interchaintest/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub(crate) fn create_deployment_file(
"chain_prefix": "neutron",
"chain_fee_denom": "untrn",
"chain_transfer_channel_ids": {
"localosmosis-1": neutron_to_osmosis_channel_id,
"localosmosis-1": neutron_to_osmosis_channel_id,
},
"directory": {
"address": astroport_factory_address,
Expand Down

0 comments on commit 46e98e7

Please sign in to comment.