Closed deepesh-kn closed 5 years ago
Some solidity contracts have the decimals hard-coded in configs. E.g. MockToken
or OSTPrime
. In the scope of this ticket, I should only address the cases where the decimals are given in the constructor, correct?
Adding it also to the configured, hard-coded contracts is a much bigger change as it also includes updating the constructors and all the places where they are instantiated.
Or should that also be part of this ticket?
/cc @deepesh-kn
Hm, I think I have to include the MockToken changes in this ticket. Otherwise it skips a lot of relevant test cases actually.
I will make the changes to set the decimals on the constructor, but it will require a little extra effort.
I created a draft PR for the ticket. Right now it includes the MockToken change. I will keep it updated with further work.
Update unit test to handle arbitrary token decimals. Detail of the ticket is here https://github.com/OpenST/JLP/issues/98#issuecomment-492484237