fix rpc settings

This commit is contained in:
saml33 2023-12-25 21:39:35 +11:00
parent ebacc4bb8f
commit dc483d9fcb
1 changed files with 3 additions and 2 deletions

View File

@ -18,11 +18,11 @@ export const LITE_RPC_URL = 'https://api.mngo.cloud/lite-rpc/v1/'
const RPC_URLS = [
{
label: 'Triton Shared',
value: process.env.NEXT_PUBLIC_ENDPOINT,
value: process.env.NEXT_PUBLIC_ENDPOINT || TRITON_DEDICATED_URL,
},
{
label: 'Triton Dedicated',
value: process.env.TRITON_DEDICATED_URL,
value: TRITON_DEDICATED_URL,
},
// {
// label: 'Genesys Go',
@ -73,6 +73,7 @@ const RpcSettings = () => {
}, [storedPriorityFeeLevel])
const handleSetEndpointProvider = (provider: string) => {
console.log(provider)
const endpointProvider = RPC_URLS.find(
(node) => node.label === provider,
) || { label: 'Custom', value: rpcEndpointProvider }