mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
more debug
This commit is contained in:
parent
986f8fa5bf
commit
50a515b300
@ -182,6 +182,8 @@ export async function orderAsset(
|
||||
providerUrl
|
||||
)
|
||||
|
||||
console.log('initializeData: ', initializeData)
|
||||
|
||||
const providerFees: ProviderFees = {
|
||||
providerFeeAddress: initializeData.providerFee.providerFeeAddress,
|
||||
providerFeeToken: initializeData.providerFee.providerFeeToken,
|
||||
@ -192,6 +194,7 @@ export async function orderAsset(
|
||||
providerData: initializeData.providerFee.providerData,
|
||||
validUntil: initializeData.providerFee.validUntil
|
||||
}
|
||||
console.log('providerFees: ', providerFees)
|
||||
|
||||
// make the payment
|
||||
const tx = await datatoken.startOrder(
|
||||
@ -200,7 +203,9 @@ export async function orderAsset(
|
||||
0,
|
||||
providerFees
|
||||
)
|
||||
console.log('tx: ', tx)
|
||||
const orderTx = await tx.wait()
|
||||
console.log('orderTx: ', orderTx)
|
||||
const orderStartedTx = getEventFromTx(orderTx, 'OrderStarted')
|
||||
return orderStartedTx
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user