Update imports with alias @ that references src folder

This commit is contained in:
RcleydsonR
2023-02-15 15:26:11 -03:00
parent b07e4ca97d
commit 2968b6f7ee
8 changed files with 12 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ import { useEtherStore } from "@/store/ether";
import { getContract, getProvider } from "./provider";
import { getP2PixAddress, getTokenAddress } from "./addresses";
import p2pix from "../utils/smart_contract_files/P2PIX.json";
import p2pix from "@/utils/smart_contract_files/P2PIX.json";
import { BigNumber, ethers } from "ethers";
import { parseEther } from "ethers/lib/utils";

View File

@@ -1,7 +1,7 @@
import { useEtherStore } from "@/store/ether";
import { Contract, ethers } from "ethers";
import p2pix from "../utils/smart_contract_files/P2PIX.json";
import p2pix from "@/utils/smart_contract_files/P2PIX.json";
import { formatEther } from "ethers/lib/utils";
import { getContract } from "./provider";
import type { ValidDeposit } from "@/model/ValidDeposit";

View File

@@ -1,6 +1,6 @@
import { useEtherStore } from "@/store/ether";
import p2pix from "../utils/smart_contract_files/P2PIX.json";
import p2pix from "@/utils/smart_contract_files/P2PIX.json";
import { updateWalletStatus } from "./wallet";
import {

View File

@@ -3,7 +3,7 @@ import { useEtherStore } from "@/store/ether";
import { getContract, getProvider } from "./provider";
import { getTokenAddress, possibleChains } from "./addresses";
import mockToken from "../utils/smart_contract_files/MockToken.json";
import mockToken from "@/utils/smart_contract_files/MockToken.json";
import { ethers, type Event } from "ethers";
import { formatEther } from "ethers/lib/utils";
@@ -128,7 +128,6 @@ const checkUnreleasedLock = async (
(lockStatus: number) => lockStatus == 1
);
console.log(lockStatus);
if (unreleasedLockId != -1) {
const _lockID = lockStatus[0][unreleasedLockId];
const lock = await p2pContract.mapLocks(_lockID);
@@ -143,8 +142,6 @@ const checkUnreleasedLock = async (
pix: pixData,
};
}
return;
};
export {