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:
parent
9ede24badf
commit
5428a8a132
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user