1
0
mirror of https://github.com/oceanprotocol/react.git synced 2025-01-24 17:21:58 +01:00

fix fixedRateExchange.create

This commit is contained in:
Matthias Kretschmann 2020-10-22 12:45:32 +02:00
parent 4636fadec9
commit 61e48431d6
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -228,7 +228,7 @@ function usePricing(ddo: DDO): UsePricing {
)
.next((step: number) => setStep(step, 'pool'))
: await ocean.fixedRateExchange
.create(dataToken, `${price}`, accountId)
.create(dataToken, `${price}`, accountId, `${dtAmount}`)
.next((step: number) => setStep(step, 'exchange'))
await sleep(20000)
return tx