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

remove cast on providerFeeAmount

This commit is contained in:
Bogdan Fazakas 2022-06-15 06:56:23 +03:00
parent a740e07b0d
commit 4d09240923

View File

@ -53,18 +53,10 @@ export async function order(
asset.services[0].serviceEndpoint
))
console.log(
'Initial providerFees == ',
providerFees || initializeData.providerFee
)
const providerFeesSanitized = providerFees || initializeData.providerFee
providerFees.providerFeeAmount = providerFees.providerFeeAmount.toString()
const orderParams = {
consumer: computeConsumerAddress || accountId,
serviceIndex: 0,
_providerFee: providerFeesSanitized,
_providerFee: providerFees || initializeData.providerFee,
_consumeMarketFee: {
consumeMarketFeeAddress: marketFeeAddress,
consumeMarketFeeAmount: consumeMarketOrderFee,