Skip to content

Commit

Permalink
enable stellar-sdk next on testnet (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
piyalbasu authored May 15, 2024
1 parent 7a6791c commit 17a03df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion @shared/helpers/stellar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ import {
BASE_RESERVE_MIN_COUNT,
NetworkDetails,
FUTURENET_NETWORK_DETAILS,
TESTNET_NETWORK_DETAILS,
} from "@shared/constants/stellar";

export const CUSTOM_NETWORK = "STANDALONE";

export const isNextSdk = (networkPassphrase: string) =>
[FUTURENET_NETWORK_DETAILS.networkPassphrase].includes(networkPassphrase);
[
FUTURENET_NETWORK_DETAILS.networkPassphrase,
TESTNET_NETWORK_DETAILS.networkPassphrase,
].includes(networkPassphrase);

export const getSdk = (networkPassphrase: string) =>
isNextSdk(networkPassphrase) ? StellarSdkNext : StellarSdk;
Expand Down

0 comments on commit 17a03df

Please sign in to comment.