diff --git a/src/hooks/usePricing/usePricing.ts b/src/hooks/usePricing/usePricing.ts index 75cbd57..7f59edc 100644 --- a/src/hooks/usePricing/usePricing.ts +++ b/src/hooks/usePricing/usePricing.ts @@ -11,6 +11,7 @@ import { getBuyDTFeedback, getSellDTFeedback } from './utils' +import { sleep } from 'utils' interface UsePricing { dtSymbol?: string @@ -228,6 +229,7 @@ function usePricing(ddo: DDO): UsePricing { : await ocean.fixedRateExchange .create(dataToken, `${price}`, accountId) .next((step: number) => setStep(step, 'exchange')) + await sleep(20000) return tx } catch (error) { setPricingError(error.message) diff --git a/src/hooks/usePublish/usePublish.ts b/src/hooks/usePublish/usePublish.ts index de99aa7..b4466ed 100644 --- a/src/hooks/usePublish/usePublish.ts +++ b/src/hooks/usePublish/usePublish.ts @@ -141,7 +141,7 @@ function usePublish(): UsePublish { ) .next(setStep) Logger.log('ddo created', ddo) - await sleep(15000) + await sleep(20000) setStep(7) return ddo } catch (error) {