fixup URL, logic was inverted, and suffix jq to broadcast for formatting
This commit is contained in:
parent
c77f460176
commit
fdeac3a313
|
@ -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}")
|
||||
|
|
|
@ -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 .
|
||||
|
|
Loading…
Reference in New Issue