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

fix estimate gas in deactivateMint() and updateMarketFee()

This commit is contained in:
Miquel A. Cabot 2022-04-19 08:49:29 +02:00
parent 9ede24badf
commit 5428a8a132

View File

@ -788,7 +788,7 @@ export class FixedRateExchange {
if (!exchange) return null if (!exchange) return null
if (exchange.withMint === false) return null if (exchange.withMint === false) return null
const estGas = await this.estDeactivate(address, exchangeId) const estGas = await this.estDeactivateMint(address, exchangeId)
const trxReceipt = await this.contract.methods const trxReceipt = await this.contract.methods
.toggleMintState(exchangeId, false) .toggleMintState(exchangeId, false)
@ -1095,7 +1095,7 @@ export class FixedRateExchange {
exchangeId: string, exchangeId: string,
newMarketFee: string newMarketFee: string
): Promise<TransactionReceipt> { ): Promise<TransactionReceipt> {
const estGas = await this.estSetRate( const estGas = await this.estUpdateMarketFee(
address, address,
exchangeId, exchangeId,
this.web3.utils.toWei(newMarketFee) this.web3.utils.toWei(newMarketFee)