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
))
const providerFeesSanitized = providerFees || initializeData.providerFee
providerFeesSanitized.providerFeeAmount = await unitsToAmount(
web3,
providerFeesSanitized.providerFeeToken,
providerFeesSanitized.providerFeeAmount.toString()
console.log(
'Initial providerFees == ',
providerFees || initializeData.providerFee
)
const providerFeesSanitized = providerFees || initializeData.providerFee
providerFees.providerFeeAmount = providerFees.providerFeeAmount.toString()
const orderParams = {
consumer: computeConsumerAddress || accountId,
serviceIndex: 0,