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:
parent
9280cf13af
commit
a2decb0f1a
@ -60,7 +60,7 @@ export class OceanFixedRateExchange {
|
|||||||
public async create(dataToken: string, rate: string, address: string): Promise<string> {
|
public async create(dataToken: string, rate: string, address: string): Promise<string> {
|
||||||
let estGas
|
let estGas
|
||||||
try {
|
try {
|
||||||
estGas = await this.contract.methods
|
/*estGas = await this.contract.methods
|
||||||
.create(this.oceanAddress, dataToken, this.web3.utils.toWei(rate))
|
.create(this.oceanAddress, dataToken, this.web3.utils.toWei(rate))
|
||||||
.estimateGas(function (err, g) {
|
.estimateGas(function (err, g) {
|
||||||
if (err) {
|
if (err) {
|
||||||
@ -69,6 +69,8 @@ export class OceanFixedRateExchange {
|
|||||||
return g
|
return g
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
|
estGas = DEFAULT_GAS_LIMIT
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
estGas = DEFAULT_GAS_LIMIT
|
estGas = DEFAULT_GAS_LIMIT
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user