Skip to content

Commit

Permalink
Merge pull request #10 from metaplex-foundation/danenbm/rpc-endpoint-…
Browse files Browse the repository at this point in the history
…clean

RPC endpoint cleanup
  • Loading branch information
danenbm authored Nov 13, 2023
2 parents 435ddc8 + 9d4dc32 commit cce2392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/gumdrop/src/contexts/ConnectionContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ export type Endpoint = {
export const ENDPOINTS: Array<Endpoint> = [
{
name: 'mainnet-beta',
url: 'https://api.metaplex.solana.com',
url: 'https://api.mainnet-beta.solana.com',
chainId: ChainId.MainnetBeta,
},
{
name: 'devnet',
url: 'https://metaplex.devnet.rpcpool.com/',
url: 'https://api.devnet.solana.com/',
chainId: ChainId.Devnet,
},
];
Expand Down
2 changes: 1 addition & 1 deletion packages/gumdrop/src/utils/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const getUnixTs = () => {

export const envFor = (connection: Connection): string => {
const endpoint = (connection as any)._rpcEndpoint;
const regex = /https:\/\/metaplex.([^.]*).rpcpool.com/;
const regex = /https:\/\/api.([^.]*).solana.com/;
const match = endpoint.match(regex);
if (match && match[1]) {
return match[1];
Expand Down

0 comments on commit cce2392

Please sign in to comment.