File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
governance/xc_admin/packages/crank_executor/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const VAULT: PublicKey = new PublicKey(envOrErr("VAULT"));
17
17
const KEYPAIR : Keypair = Keypair . fromSecretKey (
18
18
Uint8Array . from ( JSON . parse ( fs . readFileSync ( envOrErr ( "WALLET" ) , "ascii" ) ) )
19
19
) ;
20
+ const SOLANA_RPC = process . env . SOLANA_RPC ;
20
21
const COMMITMENT : Commitment =
21
22
( process . env . COMMITMENT as Commitment ) ?? "confirmed" ;
22
23
const COMPUTE_UNIT_PRICE_MICROLAMPORTS : number | undefined = process . env
@@ -26,7 +27,10 @@ const COMPUTE_UNIT_PRICE_MICROLAMPORTS: number | undefined = process.env
26
27
27
28
async function run ( ) {
28
29
const squad = new SquadsMesh ( {
29
- connection : new Connection ( getPythClusterApiUrl ( CLUSTER ) , COMMITMENT ) ,
30
+ connection : new Connection (
31
+ SOLANA_RPC ?? getPythClusterApiUrl ( CLUSTER ) ,
32
+ COMMITMENT
33
+ ) ,
30
34
wallet : new NodeWallet ( KEYPAIR ) ,
31
35
multisigProgramId : DEFAULT_MULTISIG_PROGRAM_ID ,
32
36
} ) ;
You can’t perform that action at this time.
0 commit comments