Skip to content

Commit

Permalink
fix denom
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Jun 7, 2024
1 parent 12ad689 commit 0c2ec16
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions tools/integration-test/src/tests/ica.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,18 +247,7 @@ impl BinaryConnectionTest for ICACloseChannelTest {
chains: ConnectedChains<Controller, Host>,
connection: ConnectedConnection<Controller, Host>,
) -> Result<(), Error> {
let gas_denom_str = match relayer
.config
.chains
.first()
.ok_or_else(|| eyre!("chain configuration is empty"))?
{
ChainConfig::CosmosSdk(chain_config) | ChainConfig::Namada(chain_config) => {
chain_config.gas_price.denom.clone()
}
};
let stake_denom: MonoTagged<Host, Denom> =
MonoTagged::new(Denom::base(&gas_denom_str, &gas_denom_str));
let stake_denom: MonoTagged<Host, Denom> = MonoTagged::new(Denom::base("stake", "stake"));
let (wallet, ica_address, controller_channel_id, controller_port_id) = relayer
.with_supervisor(|| {
// Register an interchain account on behalf of
Expand Down

0 comments on commit 0c2ec16

Please sign in to comment.