From 0d798f553feccd1c70fe5e044830c0627c2e9c41 Mon Sep 17 00:00:00 2001 From: Praise Disu Date: Mon, 19 Dec 2022 16:55:56 +0100 Subject: [PATCH] Ignore typescript build errors and bump version --- libs/ghaction-helper/package.json | 2 +- libs/ghaction-helper/src/methods.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/ghaction-helper/package.json b/libs/ghaction-helper/package.json index a0f55fbb9e..5d52ddb6ea 100644 --- a/libs/ghaction-helper/package.json +++ b/libs/ghaction-helper/package.json @@ -1,6 +1,6 @@ { "name": "@remix-project/ghaction-helper", - "version": "0.1.0-dev", + "version": "0.1.1-dev", "description": "Solidity Tests GitHub Action Helper", "main": "dist/index.js", "scripts": { diff --git a/libs/ghaction-helper/src/methods.ts b/libs/ghaction-helper/src/methods.ts index df90c0b27a..af4d95541e 100644 --- a/libs/ghaction-helper/src/methods.ts +++ b/libs/ghaction-helper/src/methods.ts @@ -166,11 +166,13 @@ const getContractFactory = async (contractNameOrABI: ethers.ContractInterface, b //@ts-ignore if (!global.ganacheProvider) initializeProvider() if (bytecode && contractNameOrABI) { + //@ts-ignore return new ethers.ContractFactory(contractNameOrABI, bytecode, signerOrOptions || (new ethers.providers.Web3Provider(ganacheProvider)).getSigner()) } else if (typeof contractNameOrABI === 'string') { const contract = await getArtifactsByContractName(contractNameOrABI) if (contract) { + //@ts-ignore return new ethers.ContractFactory(contract.abi, contract.evm.bytecode.object, signerOrOptions || (new ethers.providers.Web3Provider(ganacheProvider)).getSigner()) } else { throw new Error('Contract artifacts not found') @@ -183,6 +185,7 @@ const getContractFactory = async (contractNameOrABI: ethers.ContractInterface, b const getContractAt = async (contractNameOrABI: ethers.ContractInterface, address: string, signer = null) => { //@ts-ignore if (!global.ganacheProvider) initializeProvider() + //@ts-ignore const provider = new ethers.providers.Web3Provider(ganacheProvider) if(typeof contractNameOrABI === 'string') { @@ -201,6 +204,7 @@ const getContractAt = async (contractNameOrABI: ethers.ContractInterface, addres const getSigner = async (address: string) => { //@ts-ignore if (!global.ganacheProvider) initializeProvider() + //@ts-ignore const provider = new ethers.providers.Web3Provider(ganacheProvider) const signer = provider.getSigner(address) @@ -210,6 +214,7 @@ const getSigner = async (address: string) => { const getSigners = async () => { //@ts-ignore if (!global.ganacheProvider) initializeProvider() + //@ts-ignore const provider = new ethers.providers.Web3Provider(ganacheProvider) const accounts = await provider.listAccounts() @@ -243,6 +248,7 @@ If you want to call a contract using ${artifact.contractName} as its interface u } const linkedBytecode = await collectLibrariesAndLink(artifact, libraries) + //@ts-ignore return new ethers.ContractFactory(artifact.abi, linkedBytecode || artifact.bytecode, signer || (new ethers.providers.Web3Provider(ganacheProvider)).getSigner()) }