Skip to content

Commit c2948b1

Browse files
committed
fix APTOS_RPC default
1 parent 52d9f33 commit c2948b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helpers/aptos.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import axios from "axios";
22
import { httpGet, httpPost } from "../utils/fetchURL";
33
import { GraphQLClient } from "graphql-request";
4+
import { getEnv } from "./env";
45

5-
export const APTOS_RPC = 'https://aptos-mainnet.pontem.network';
6+
// export const APTOS_RPC = 'https://aptos-mainnet.pontem.network';
7+
export const APTOS_RPC = getEnv('APTOS_RPC');
68

79
// Number of decimals for the APT token.
810
const APT_DECIMALS = 8;

0 commit comments

Comments
 (0)