Skip to content

Commit

Permalink
enableTrading - fixed decimal input
Browse files Browse the repository at this point in the history
  • Loading branch information
yudilevi committed Sep 21, 2023
1 parent 8c43cfd commit a8885cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/enableTrading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
Expand Down

0 comments on commit a8885cb

Please sign in to comment.