fixup URL, logic was inverted, and suffix jq to broadcast for formatting

This commit is contained in:
Ryan Heywood 2024-12-20 17:53:02 -05:00
parent c77f460176
commit fdeac3a313
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
2 changed files with 2 additions and 2 deletions

View File

@ -656,7 +656,7 @@ impl Module for Solana {
let _simulated_response = client.simulate_transaction(&transaction).unwrap(); let _simulated_response = client.simulate_transaction(&transaction).unwrap();
let response = client.send_and_confirm_transaction(&transaction); let response = client.send_and_confirm_transaction(&transaction);
let cluster_suffix = { let cluster_suffix = {
if cluster != Cluster::MainnetBeta { if cluster == Cluster::MainnetBeta {
String::new() String::new()
} else { } else {
format!("?cluster={cluster}") format!("?cluster={cluster}")

View File

@ -29,4 +29,4 @@ echo "Waiting for signed transaction..."
while test ! -f /data/output.json; do sleep 1; done while test ! -f /data/output.json; do sleep 1; done
echo "Broadcasting transaction" echo "Broadcasting transaction"
icepick sol broadcast --cluster devnet < /data/output.json icepick sol broadcast --cluster devnet < /data/output.json | jq .