diff --git a/.github/workflows/rust-wasm.yml b/.github/workflows/rust-wasm.yml index 5ebb7bdd2..2aaccedc7 100644 --- a/.github/workflows/rust-wasm.yml +++ b/.github/workflows/rust-wasm.yml @@ -30,7 +30,10 @@ jobs: uses: actions-rs/toolchain@v1 with: toolchain: stable - components: clippy + # Issue #1302: `profile: minimal` does not install rustfmt, so the + # `cargo fmt --all -- --check` step below would fail with + # "no such command" instead of actually gating on formatting. + components: clippy, rustfmt profile: minimal override: true diff --git a/contracts/bridge-compat/src/lib.rs b/contracts/bridge-compat/src/lib.rs index d22abf1b8..a9cf949ea 100644 --- a/contracts/bridge-compat/src/lib.rs +++ b/contracts/bridge-compat/src/lib.rs @@ -689,6 +689,17 @@ mod tests { client.initialize(&admin, &token); + let chains = Vec::from_array(&env, &[1, 2, 3]); + let id = BridgeCompat::register_provider( + env.clone(), + String::from_str(&env, "Wormhole"), + BridgeProviderKind::Wormhole, + endpoint, + 50, // 0.5% fee + 1_000_000_000_000, + chains, + ) + .unwrap(); let chains = Vec::from_array(&env, [1, 2, 3]); let id = client.register_provider( &String::from_str(&env, "Wormhole"),