Skip to content

Commit

Permalink
ramdonly choose between providers
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Apr 3, 2024
1 parent ab2f089 commit fb604d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/claim_sdk/solana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class TokenDispenserProvider {
this.tokenDispenserProgram = new Program(
tokenDispenser as Idl,
programId,
this.providers[0]
this.providers[Math.floor(Math.random() * endpoints.length)]
) as unknown as Program<TokenDispenser>

this.configPda = anchor.web3.PublicKey.findProgramAddressSync(
Expand Down

0 comments on commit fb604d2

Please sign in to comment.