Skip to content

Commit

Permalink
Update RPC endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulyadav-57 committed Jan 23, 2024
1 parent fc4a3aa commit 6ed4f4b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/hooks/contract.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Project,
} from '@/interfaces/workspace.interface';
import { capitalizeFirstLetter, convertToText } from '@/utility/utils';
import { Network, getHttpEndpoint } from '@orbs-network/ton-access';
import { Config, Network } from '@orbs-network/ton-access';
import {
SandboxContract,
SendMessageResult,
Expand All @@ -34,6 +34,12 @@ import {
toNano,
} from 'ton-core';

const getHttpEndpoint = ({ network }: Config) => {
return `https://${
network === 'testnet' ? 'testnet.' : ''
}toncenter.com/api/v2/jsonRPC`;
};

export function useContractAction() {
const [tonConnector] = useTonConnectUI();

Expand Down

0 comments on commit 6ed4f4b

Please sign in to comment.