Add typing on views layer

Co-authored-by: geovanne97 <geovannessaraiva97@gmail.com>
This commit is contained in:
RcleydsonR
2023-01-18 23:12:40 -03:00
parent f87434debe
commit 846fa82f04
9 changed files with 47 additions and 38 deletions

View File

@@ -11,10 +11,7 @@ import { formatEther, parseEther } from "ethers/lib/utils";
// Buyer Flow methods //
// Make lock
const addLock = async (
depositId: BigNumber,
amount: number
): Promise<any> => {
const addLock = async (depositId: BigNumber, amount: number): Promise<any> => {
const etherStore = useEtherStore();
const provider = getProvider();

View File

@@ -42,7 +42,9 @@ const getNetworksLiquidity = async (): Promise<void> => {
console.log(depositListMumbai);
};
const getValidDeposits = async (contract?: Contract): Promise<ValidDeposit[]> => {
const getValidDeposits = async (
contract?: Contract
): Promise<ValidDeposit[]> => {
let p2pContract: Contract;
if (contract) {