1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

hardcode create gas limit

This commit is contained in:
alexcos20 2020-09-09 05:43:05 -07:00
parent 9280cf13af
commit a2decb0f1a

View File

@ -60,7 +60,7 @@ export class OceanFixedRateExchange {
public async create(dataToken: string, rate: string, address: string): Promise<string> {
let estGas
try {
estGas = await this.contract.methods
/*estGas = await this.contract.methods
.create(this.oceanAddress, dataToken, this.web3.utils.toWei(rate))
.estimateGas(function (err, g) {
if (err) {
@ -69,6 +69,8 @@ export class OceanFixedRateExchange {
return g
}
})
*/
estGas = DEFAULT_GAS_LIMIT
} catch (e) {
estGas = DEFAULT_GAS_LIMIT
}