From fdeac3a313f8a1571c449ad2501000797a61ae56 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 20 Dec 2024 17:53:02 -0500 Subject: [PATCH] fixup URL, logic was inverted, and suffix jq to broadcast for formatting --- crates/by-chain/icepick-solana/src/lib.rs | 2 +- e2e-tests/solana/online.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/by-chain/icepick-solana/src/lib.rs b/crates/by-chain/icepick-solana/src/lib.rs index 8ef8014..3799321 100644 --- a/crates/by-chain/icepick-solana/src/lib.rs +++ b/crates/by-chain/icepick-solana/src/lib.rs @@ -656,7 +656,7 @@ impl Module for Solana { let _simulated_response = client.simulate_transaction(&transaction).unwrap(); let response = client.send_and_confirm_transaction(&transaction); let cluster_suffix = { - if cluster != Cluster::MainnetBeta { + if cluster == Cluster::MainnetBeta { String::new() } else { format!("?cluster={cluster}") diff --git a/e2e-tests/solana/online.sh b/e2e-tests/solana/online.sh index 6191b2f..5f64102 100644 --- a/e2e-tests/solana/online.sh +++ b/e2e-tests/solana/online.sh @@ -29,4 +29,4 @@ echo "Waiting for signed transaction..." while test ! -f /data/output.json; do sleep 1; done echo "Broadcasting transaction" -icepick sol broadcast --cluster devnet < /data/output.json +icepick sol broadcast --cluster devnet < /data/output.json | jq .