Skip to content

Commit

Permalink
change all ocean endpointss
Browse files Browse the repository at this point in the history
  • Loading branch information
pierregee committed Jul 25, 2024
1 parent 8974538 commit 3db6dd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/layouts/contexts/WhaleContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export function getWhaleRpcClient(
): WhaleRpcClient {
const network =
context.query.network?.toString() ?? getEnvironment().networks[0];
return newRpcClient(newOceanOptions(network as EnvironmentNetwork));
return newRpcClient(
newOceanOptions(network as EnvironmentNetwork, process.env.OCEAN_ENDPOINT),
);
}

export function newPlaygroundRpcClient(
Expand All @@ -68,7 +70,7 @@ export function WhaleProvider(
const connection = useNetwork().connection;

const memo = useMemo(() => {
const options = newOceanOptions(connection);
const options = newOceanOptions(connection, process.env.OCEAN_ENDPOINT);
return {
api: newWhaleClient(options),
rpc: newRpcClient(options),
Expand Down

0 comments on commit 3db6dd8

Please sign in to comment.