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,
|
"resolveJsonModule": true,
|
||||||
"lib": ["es6", "es7", "dom"],
|
"lib": ["es6", "es7", "dom"],
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"esModuleInterop": true
|
"esModuleInterop": true,
|
||||||
|
"allowSyntheticDefaultImports": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ export abstract class ContractBase extends Instantiable {
|
|||||||
return this.contract.options.address
|
return this.contract.options.address
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(contractName, private optional: boolean = false) {
|
constructor(contractName: string, private optional: boolean = false) {
|
||||||
super()
|
super()
|
||||||
this.contractName = contractName
|
this.contractName = contractName
|
||||||
}
|
}
|
||||||
|
@ -130,8 +130,9 @@ export default class TestContractHandler extends ContractHandler {
|
|||||||
const sendConfig = {
|
const sendConfig = {
|
||||||
from,
|
from,
|
||||||
gas: 3000000,
|
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 artifact = require(`@oceanprotocol/keeper-contracts/artifacts/${name}.development.json`)
|
||||||
const tempContract = new web3.eth.Contract(artifact.abi, artifact.address)
|
const tempContract = new web3.eth.Contract(artifact.abi, artifact.address)
|
||||||
const isZos = !!tempContract.methods.initialize
|
const isZos = !!tempContract.methods.initialize
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"lib": ["es6", "es7"],
|
"lib": ["es6", "es7"],
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"esModuleInterop": true
|
"esModuleInterop": true,
|
||||||
|
"allowSyntheticDefaultImports": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
"lib": ["es2017", "es6", "es7", "dom"],
|
"lib": ["es2017", "es6", "es7", "dom"],
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
|
Loading…
Reference in New Issue
Block a user