Skip to content

Commit ff437db

Browse files
committed
fix: solana http to https for production
1 parent faf7049 commit ff437db

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/services/wallets.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ const calculateTransferNftGas = async (toAddr: string, nftId: string) => {
495495
} catch (ex) {
496496
console.error("Gas estimation failed:", ex);
497497
}
498-
}
498+
};
499499

500500
const transferNft = async (toAddr: string, nftId: string) => {
501501
if (!CoNET_Data) {
@@ -533,7 +533,7 @@ const transferNft = async (toAddr: string, nftId: string) => {
533533
console.log(ex);
534534
throw ex;
535535
}
536-
}
536+
};
537537

538538
const getVpnTimeUsed = async () => {
539539
if (!CoNET_Data?.profiles[0]) return;
@@ -672,11 +672,14 @@ const getPassportsInfo = async (
672672
}
673673
};
674674

675-
const refreshSolanaBalances = async (solanaProfile: profile, node: nodes_info) => {
676-
if (!node) {
677-
return
678-
}
679-
const solanaRPC_url = `http://${node.domain}/solana-rpc`
675+
const refreshSolanaBalances = async (
676+
solanaProfile: profile,
677+
node: nodes_info
678+
) => {
679+
if (!node) {
680+
return;
681+
}
682+
const solanaRPC_url = `https://${node.domain}/solana-rpc`;
680683
try {
681684
const [sol, sp] = await Promise.all([
682685
scanSolanaSol(solanaProfile.keyID, solanaRPC_url),

0 commit comments

Comments
 (0)