Skip to content

Commit

Permalink
e2e test now passes up to the establishment of packet forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
batconjurer committed Jan 6, 2025
1 parent 0f1d3cc commit 3dfca1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion crates/tests/src/e2e/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ fn make_hermes_chain_config_for_cosmos(
);
chain.insert("store_prefix".to_owned(), Value::String("ibc".to_owned()));
chain.insert("max_gas".to_owned(), Value::Integer(500_000));
chain.insert("gas_multiplier".to_owned(), Value::Float(1.3));
chain.insert("gas_multiplier".to_owned(), Value::Float(2.3));
let mut table = toml::map::Map::new();
if let CosmosChainType::Osmosis = chain_type {
table.insert("price".to_owned(), Value::Float(0.01));
Expand Down
16 changes: 5 additions & 11 deletions crates/tests/src/e2e/ibc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3885,11 +3885,10 @@ fn osmosis_bingbong() -> Result<()> {
let mut osmosis_cmd = run_cosmos_cmd(&test_osmosis, args, Some(40))?;
osmosis_cmd.assert_success();
std::thread::sleep(Duration::from_secs(5));
panic!();
// enable pfm on gaia and namada
for (chain, token) in [
("namada", get_gaia_denom_hash(format!("transfer/{channel_from_osmosis_to_namada}/{nam_token_addr}"))),
//("gaia", get_gaia_denom_hash(format!("transfer/{channel_from_osmosis_to_gaia}/cosmo"))),
("gaia", get_gaia_denom_hash(format!("transfer/{channel_from_osmosis_to_gaia}/{COSMOS_COIN}"))),
] {
let msg = format!(r#"{{"propose_pfm": {{"chain": "{chain}"}}}}"#);
let amount = format!("1{token}");
Expand Down Expand Up @@ -3919,29 +3918,24 @@ fn osmosis_bingbong() -> Result<()> {
&channel_from_osmosis_to_namada,
&test_osmosis
)?;
/*wait_for_packet_relay(
wait_for_packet_relay(
&hermes_gaia_osmosis,
&PortId::transfer(),
&channel_from_osmosis_to_gaia,
&test_osmosis
)?;*/
)?;

for chain in ["namada", "gaia"] {
let msg = format!(r#"{{"has_packet_forwarding": {{"chain": "{chain}"}}}}"#);
let args = cosmos_common_args(
"5000000",
Some("0.01stake"),
test_osmosis.net.chain_id.as_str(),
&rpc_osmosis,
let args =
vec![
"query",
"wasm",
"contract-state",
"smart",
&crosschain_registry_addr,
&msg
],
);
];
let mut osmosis_cmd = run_cosmos_cmd(&test_osmosis, args, Some(40))?;
osmosis_cmd.exp_string("data: true")?;
std::thread::sleep(Duration::from_secs(5));
Expand Down

0 comments on commit 3dfca1c

Please sign in to comment.