1
0
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:
paulo-ocean 2024-07-01 10:47:30 +01:00
parent 986f8fa5bf
commit 50a515b300

View File

@ -182,6 +182,8 @@ export async function orderAsset(
providerUrl providerUrl
) )
console.log('initializeData: ', initializeData)
const providerFees: ProviderFees = { const providerFees: ProviderFees = {
providerFeeAddress: initializeData.providerFee.providerFeeAddress, providerFeeAddress: initializeData.providerFee.providerFeeAddress,
providerFeeToken: initializeData.providerFee.providerFeeToken, providerFeeToken: initializeData.providerFee.providerFeeToken,
@ -192,6 +194,7 @@ export async function orderAsset(
providerData: initializeData.providerFee.providerData, providerData: initializeData.providerFee.providerData,
validUntil: initializeData.providerFee.validUntil validUntil: initializeData.providerFee.validUntil
} }
console.log('providerFees: ', providerFees)
// make the payment // make the payment
const tx = await datatoken.startOrder( const tx = await datatoken.startOrder(
@ -200,7 +203,9 @@ export async function orderAsset(
0, 0,
providerFees providerFees
) )
console.log('tx: ', tx)
const orderTx = await tx.wait() const orderTx = await tx.wait()
console.log('orderTx: ', orderTx)
const orderStartedTx = getEventFromTx(orderTx, 'OrderStarted') const orderStartedTx = getEventFromTx(orderTx, 'OrderStarted')
return orderStartedTx return orderStartedTx
} }