diff --git a/client/src/components/Main/index.js b/client/src/components/Main/index.js index 21ba4c9..802d9f0 100644 --- a/client/src/components/Main/index.js +++ b/client/src/components/Main/index.js @@ -29,8 +29,7 @@ import SendIcon from "../../pics/icons/send.png"; import SwapIcon from "../../pics/icons/swap.png"; const Main = ({ children }) => { - const coreEndpoint = - process.env.REACT_APP_OWSHEN_ENDPOINT || "http://127.0.0.1:9000"; + const coreEndpoint = process.env.REACT_APP_OWSHEN_ENDPOINT || ""; const address = useSelector(selectUserAddress); const accountData = useAccount(); const chainId = accountData ? accountData.chainId : undefined; diff --git a/client/src/components/Modal/TransactionModal.js b/client/src/components/Modal/TransactionModal.js index fc14c42..e2e39ed 100644 --- a/client/src/components/Modal/TransactionModal.js +++ b/client/src/components/Modal/TransactionModal.js @@ -31,8 +31,7 @@ const TransactionModal = ({ selectedCoin, isDataSet, }) => { - const coreEndpoint = - process.env.REACT_APP_OWSHEN_ENDPOINT || "http://127.0.0.1:9000"; + const coreEndpoint = process.env.REACT_APP_OWSHEN_ENDPOINT || ""; const address = useSelector(selectUserAddress); const OwshenWallet = useSelector(selectOwshen); const receivedcoins = useSelector(selectReceivedCoins); @@ -194,8 +193,7 @@ const TransactionModal = ({ const selectedCoint = findMatchingCoin(); - const coreEndpoint = - process.env.REACT_APP_OWSHEN_ENDPOINT || "http://127.0.0.1:9000"; + const coreEndpoint = process.env.REACT_APP_OWSHEN_ENDPOINT || ""; const options = { gasLimit: 5000000, }; @@ -284,8 +282,7 @@ const TransactionModal = ({ // } //Todo: its should be with dynamic decimal const desireAmount = utils.toWei(Number(tokenAmount), "ether"); - const coreEndpoint = - process.env.REACT_APP_OWSHEN_ENDPOINT || "http://127.0.0.1:9000"; + const coreEndpoint = process.env.REACT_APP_OWSHEN_ENDPOINT || ""; const options = { gasLimit: 5000000, }; diff --git a/client/src/components/SelectNetwork/index.js b/client/src/components/SelectNetwork/index.js index 4003a1f..26afa3d 100644 --- a/client/src/components/SelectNetwork/index.js +++ b/client/src/components/SelectNetwork/index.js @@ -9,8 +9,7 @@ import { setNetworkDetails } from "../../store/containerSlice"; const SelectNetwork = () => { const dispatch = useDispatch(); - const coreEndpoint = - process.env.REACT_APP_OWSHEN_ENDPOINT || "http://127.0.0.1:9000"; + const coreEndpoint = process.env.REACT_APP_OWSHEN_ENDPOINT || ""; const accountData = useAccount(); const chainId = accountData ? accountData.chainId : undefined; const [network, setNetWork] = useState("Select Network");