Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/rust-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 11 additions & 0 deletions contracts/bridge-compat/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
Loading