Ignore typescript build errors and bump version

pull/3274/head
Praise Disu 2 years ago committed by Aniket
parent fc1fb856ec
commit 2a4bf06974
  1. 2
      libs/ghaction-helper/package.json
  2. 6
      libs/ghaction-helper/src/methods.ts

@ -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": {

@ -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())
}

Loading…
Cancel
Save