mirror of
https://github.com/oceanprotocol/react.git
synced 2024-11-22 09:47:06 +01:00
add sleeps
This commit is contained in:
parent
750f1fb48b
commit
a73b0d888e
@ -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)
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user