mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
add allowSyntheticDefaultImports
This commit is contained in:
parent
2fd4e94f29
commit
c122e06871
@ -3,6 +3,7 @@
|
||||
"resolveJsonModule": true,
|
||||
"lib": ["es6", "es7", "dom"],
|
||||
"noUnusedLocals": true,
|
||||
"esModuleInterop": true
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ export abstract class ContractBase extends Instantiable {
|
||||
return this.contract.options.address
|
||||
}
|
||||
|
||||
constructor(contractName, private optional: boolean = false) {
|
||||
constructor(contractName: string, private optional: boolean = false) {
|
||||
super()
|
||||
this.contractName = contractName
|
||||
}
|
||||
|
@ -130,8 +130,9 @@ export default class TestContractHandler extends ContractHandler {
|
||||
const sendConfig = {
|
||||
from,
|
||||
gas: 3000000,
|
||||
gasPrice: String(10000000000)
|
||||
gasPrice: '10000000000'
|
||||
}
|
||||
// eslint-disable-next-line security/detect-non-literal-require
|
||||
const artifact = require(`@oceanprotocol/keeper-contracts/artifacts/${name}.development.json`)
|
||||
const tempContract = new web3.eth.Contract(artifact.abi, artifact.address)
|
||||
const isZos = !!tempContract.methods.initialize
|
||||
|
@ -3,6 +3,7 @@
|
||||
"resolveJsonModule": true,
|
||||
"lib": ["es6", "es7"],
|
||||
"noUnusedLocals": true,
|
||||
"esModuleInterop": true
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
"resolveJsonModule": true,
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"lib": ["es2017", "es6", "es7", "dom"],
|
||||
"declaration": true,
|
||||
"module": "commonjs",
|
||||
|
Loading…
Reference in New Issue
Block a user