Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui: fix tx prc #376

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions anchor/src/client/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,10 @@ export class BaseClient {
signerOverride?: Keypair,
): Promise<TransactionSignature> {
// Use dedicated connection for sending transactions if available
const { NEXT_PUBLIC_TX_RPC, TX_RPC } = process.env;
const txConnection = new Connection(
NEXT_PUBLIC_TX_RPC || TX_RPC || this.provider.connection.rpcEndpoint,
process.env?.NEXT_PUBLIC_TX_RPC ||
process.env.TX_RPC ||
this.provider.connection.rpcEndpoint,
{
commitment: "confirmed",
},
Expand Down
2 changes: 1 addition & 1 deletion playground/.env.local.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NEXT_PUBLIC_SOLANA_RPC=https://api.mainnet-beta.solana.com
NEXT_PUBLIC_GLAM_API=https://api.glam.systems
NEXT_PUBLIC_TX_RPC=https://staked.helius-rpc.com/?api-key=
NEXT_PUBLIC_ENABLED_ROUTES=/,/flows,/holdings,/trade,/settings
NEXT_PUBLIC_HELIUS_API_KEY=helius_api_key
Loading