diff --git a/src/actions/accountCreator.js b/src/actions/accountCreator.js index 5f2ebc19..dccabe07 100644 --- a/src/actions/accountCreator.js +++ b/src/actions/accountCreator.js @@ -22,8 +22,8 @@ export function updateFriendbotTarget(target) { export const START_FRIENDBOT_REQUEST = "START_FRIENDBOT_REQUEST"; export const FINISH_FRIENDBOT_REQUEST = "FINISH_FRIENDBOT_REQUEST"; -export function startFriendbotRequest(target, isSoroban = false) { - const friendbotURL = isSoroban +export function startFriendbotRequest(target, isFuturenet = false) { + const friendbotURL = isFuturenet ? "https://friendbot-futurenet.stellar.org" : "https://friendbot.stellar.org"; return (dispatch) => { diff --git a/src/views/FriendbotFundAccount.tsx b/src/views/FriendbotFundAccount.tsx index 41a2f469..521ed7ba 100644 --- a/src/views/FriendbotFundAccount.tsx +++ b/src/views/FriendbotFundAccount.tsx @@ -7,7 +7,6 @@ import { CodeBlock } from "components/CodeBlock"; import PubKeyPicker from "components/FormComponents/PubKeyPicker"; import NETWORK from "constants/network.js"; import { useRedux } from "hooks/useRedux"; -import { useIsSoroban } from "hooks/useIsSoroban"; import { ActionStatus } from "types/types"; export const FriendbotFundAccount = () => { @@ -15,7 +14,7 @@ export const FriendbotFundAccount = () => { const { friendbotStatus, friendbotTarget } = accountCreator; const baseURL = network.current.horizonURL; const IS_TESTNET = baseURL === NETWORK.available.test.horizonURL; - const isSoroban = useIsSoroban(); + const IS_FUTURENET = baseURL === NETWORK.available.futurenet.horizonURL; const dispatch = useDispatch(); @@ -60,7 +59,7 @@ export const FriendbotFundAccount = () => { return null; }; - if (IS_TESTNET || isSoroban) { + if (IS_TESTNET || IS_FUTURENET) { return (
{ >

- Friendbot: Fund a {isSoroban ? "Soroban" : "test"} network account + Friendbot: Fund a {IS_FUTURENET ? "futurenet" : "test"} network + account

The friendbot is a horizon API endpoint that will fund an account - with 10,000 lumens on the {isSoroban ? "Soroban " : "test"} network. + with 10,000 lumens on the {IS_FUTURENET ? "futurenet " : "test"}{" "} + network.

{ className="s-button" disabled={friendbotTarget.length === 0} onClick={() => - dispatch(startFriendbotRequest(friendbotTarget, isSoroban)) + dispatch(startFriendbotRequest(friendbotTarget, IS_FUTURENET)) } > Get test network lumens