From a8885cba036a2c82c03bd19af13282c0d0fa52bf Mon Sep 17 00:00:00 2001 From: Yudi Levi Date: Thu, 21 Sep 2023 15:41:32 +0100 Subject: [PATCH] enableTrading - fixed decimal input --- scripts/enableTrading.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/enableTrading.ts b/scripts/enableTrading.ts index 38d23317..d5625573 100644 --- a/scripts/enableTrading.ts +++ b/scripts/enableTrading.ts @@ -141,7 +141,13 @@ const main = async () => { await execute({ name: InstanceName.CarbonPOL, methodName: 'enableTrading', - args: [token, { ethAmount: ethVirtualBalance.toString(), tokenAmount: tokenVirtualBalance.toString() }], + args: [ + token, + { + ethAmount: ethVirtualBalance.toFixed().toString(), + tokenAmount: tokenVirtualBalance.toFixed().toString() + } + ], from: deployer.address }); }