diff --git a/src/utils/freePrice.ts b/src/utils/freePrice.ts index 98645e4de..31a6cba8e 100644 --- a/src/utils/freePrice.ts +++ b/src/utils/freePrice.ts @@ -8,6 +8,9 @@ export async function setMinterToPublisher( setError: (msg: string) => void ): Promise { // free pricing v3 workaround part1 + const status = await ocean.OceanDispenser.status(dataTokenAddress) + if (!status?.minterApproved) return + const response = await ocean.OceanDispenser.cancelMinter( dataTokenAddress, accountId