Skip to content

Commit

Permalink
enable floating-point support
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed May 22, 2024
1 parent 5c821b4 commit 1cc0be0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion crates/namada/src/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const UNTRUSTED_WASM_FEATURES: WasmFeatures = WasmFeatures {
relaxed_simd: false,
threads: false,
tail_call: false,
floats: false,
floats: true,
multi_memory: false,
exceptions: false,
memory64: false,
Expand Down
22 changes: 0 additions & 22 deletions crates/tests/src/e2e/ibc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,28 +260,6 @@ fn run_ledger_ibc_with_hermes() -> Result<()> {
wait_for_packet_relay(&port_id_a, &channel_id_a, &test_a)?;
check_balances_after_back(&port_id_b, &channel_id_b, &test_a, &test_b)?;

// Transfer a token and it will time out and refund
std::env::set_var(ENV_VAR_CHAIN_ID, test_b.net.chain_id.to_string());
let receiver = find_address(&test_b, BERTHA)?;
// Send a token from Chain A
transfer(
&test_a,
ALBERT,
receiver.to_string(),
NAM,
100000.0,
ALBERT_KEY,
&port_id_a,
&channel_id_a,
Some(Duration::new(0, 0)),
None,
false,
)?;
// wait for the timeout and the refund
wait_for_packet_relay(&port_id_a, &channel_id_a, &test_a)?;
// The balance should not be changed
check_balances_after_back(&port_id_b, &channel_id_b, &test_a, &test_b)?;

// Send a token to the shielded address on Chain A
transfer_on_chain(
&test_a,
Expand Down

0 comments on commit 1cc0be0

Please sign in to comment.