From a740e07b0d1c423dd1774bac4bd54288e324ebbc Mon Sep 17 00:00:00 2001
From: Bogdan Fazakas <bogdan.fazakas@gmail.com>
Date: Wed, 15 Jun 2022 06:54:06 +0300
Subject: [PATCH] send providerFeeAmount as string

---
 src/@utils/order.ts | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/@utils/order.ts b/src/@utils/order.ts
index 5b523a864..e2e24811f 100644
--- a/src/@utils/order.ts
+++ b/src/@utils/order.ts
@@ -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,