1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

send providerFeeAmount as string

This commit is contained in:
Bogdan Fazakas 2022-06-15 06:54:06 +03:00
parent 9545788e3d
commit a740e07b0d

View File

@ -53,13 +53,14 @@ export async function order(
asset.services[0].serviceEndpoint asset.services[0].serviceEndpoint
)) ))
const providerFeesSanitized = providerFees || initializeData.providerFee console.log(
providerFeesSanitized.providerFeeAmount = await unitsToAmount( 'Initial providerFees == ',
web3, providerFees || initializeData.providerFee
providerFeesSanitized.providerFeeToken,
providerFeesSanitized.providerFeeAmount.toString()
) )
const providerFeesSanitized = providerFees || initializeData.providerFee
providerFees.providerFeeAmount = providerFees.providerFeeAmount.toString()
const orderParams = { const orderParams = {
consumer: computeConsumerAddress || accountId, consumer: computeConsumerAddress || accountId,
serviceIndex: 0, serviceIndex: 0,