Compare commits

..

3 Commits

Author SHA1 Message Date
hueso
fbe32e78ab Görli -> Sepolia
Some checks failed
Deploy FrontEnd / deploy-staging (push) Has been cancelled
Deploy FrontEnd / deploy-production (push) Has been cancelled
CI script / lint (push) Has been cancelled
CI script / build (push) Has been cancelled
CI script / SonarCloud (push) Has been cancelled
2024-07-18 19:37:39 -03:00
hueso
2c04e6f0de add Rootstock testnet 2024-07-18 19:23:53 -03:00
hueso
ce3fc962d6 fix chain detection 2024-07-18 19:23:09 -03:00
4 changed files with 6 additions and 4 deletions

View File

@ -56,7 +56,7 @@ const getNetworksLiquidity = async (): Promise<void> => {
);
const depositListRootstock = await getValidDeposits(
getTokenAddress(NetworkEnum.rsktestnet),
getTokenAddress(NetworkEnum.rootstock),
p2pContractRootstock
);

View File

@ -21,9 +21,9 @@ const updateWalletStatus = async (): Promise<void> => {
const signer = provider.getSigner();
const { chainId } = await provider.getNetwork();
if(!isPossibleNetwork(chainId)){
if(!isPossibleNetwork(chainId.toString())){
window.alert("Invalid chain!:"+chainId);
return false;
return;
}
etherStore.setNetworkName(possibleChains[chainId]);

View File

@ -491,7 +491,7 @@ onClickOutside(infoMenuRef, () => {
<div class="bg-white rounded-md z-10 h-full">
<div
class="menu-button gap-2 sm:px-4 rounded-md cursor-pointer py-2"
@click="networkChange(NetworkEnum.rsktestnet)"
@click="networkChange(NetworkEnum.rootstock)"
>
<img
alt="Rootstock image"

View File

@ -13,6 +13,8 @@ export const useEtherStore = defineStore("ether", {
depositsValidListSepolia: [] as ValidDeposit[],
// Depósitos válidos para compra MUMBAI
depositsValidListMumbai: [] as ValidDeposit[],
// Depósitos válidos para compra ROOTSTOCK
depositsValidListRootstock: [] as ValidDeposit[],
loadingWalletTransactions: false,
loadingNetworkLiquidity: false,
}),