fixing lint for ghaction-helper

pull/5370/head
lianahus 7 months ago
parent b6d7ddbd58
commit 1cf5c2c372
  1. 2
      libs/ghaction-helper/src/ethers.ts
  2. 4
      libs/ghaction-helper/src/methods.ts

@ -2,7 +2,7 @@
import { ethers } from 'ethers' import { ethers } from 'ethers'
import * as hhEtherMethods from './methods' import * as hhEtherMethods from './methods'
for(const method in hhEtherMethods) Object.defineProperty(ethers, method, { value: hhEtherMethods[method]}) for (const method in hhEtherMethods) Object.defineProperty(ethers, method, { value: hhEtherMethods[method] })
export * from 'ethers' export * from 'ethers'
export { ethers } export { ethers }

@ -11,7 +11,7 @@ const providerConfig = {
blockNumber: global.blockNumber || null blockNumber: global.blockNumber || null
} }
const config = { defaultTransactionType: '0x0' } const config = { defaultTransactionType: '0x0' }
global.remixProvider = new Provider(providerConfig) global.remixProvider = new Provider(providerConfig)
global.remixProvider.init() global.remixProvider.init()
global.web3Provider = new ethers.providers.Web3Provider(global.remixProvider) global.web3Provider = new ethers.providers.Web3Provider(global.remixProvider)
@ -194,7 +194,7 @@ const getContractAt = async (contractNameOrABI: ethers.ContractInterface, addres
//@ts-ignore //@ts-ignore
const provider = web3Provider const provider = web3Provider
if(typeof contractNameOrABI === 'string') { if (typeof contractNameOrABI === 'string') {
const result = await getArtifactsByContractName(contractNameOrABI) const result = await getArtifactsByContractName(contractNameOrABI)
if (result) { if (result) {

Loading…
Cancel
Save