Skip to content

Commit

Permalink
feat: Fix gitpod issues
Browse files Browse the repository at this point in the history
  • Loading branch information
OwshenNetwork committed Jan 21, 2024
1 parent a527b41 commit bee45da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions client/src/components/Main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 3 additions & 6 deletions client/src/components/Modal/TransactionModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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,
};
Expand Down Expand Up @@ -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,
};
Expand Down
3 changes: 1 addition & 2 deletions client/src/components/SelectNetwork/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit bee45da

Please sign in to comment.