Skip to content

Commit

Permalink
fix http agent doing weird stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
macalinao committed Mar 25, 2024
1 parent 01d39cd commit ed8dd77
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export const makeProvider = (network: Network) => {
? process.env.MAINNET_SOLANA_RPC_ENDPOINT ??
"https://mainnet.helius-rpc.com/?api-key=26bec238-00c2-4961-ba13-faa7c0a2d767"
: "https://api.devnet.solana.com",
{
// https://solana.stackexchange.com/questions/6376/premature-close-error-when-fetching-25-or-more-accounts-at-once-with-solana-web
// https://github.com/solana-labs/solana-web3.js/issues/1418
httpAgent: false,
},
),
wallet: new SignerWallet(Keypair.generate()),
});
Expand Down

0 comments on commit ed8dd77

Please sign in to comment.