zksync-sdk / zksync-python

Python 3.8 SDK for zkSync
MIT License
116 stars 65 forks source link

Fix token amount to decimal string conversion #10

Closed hukkin closed 3 years ago

hukkin commented 3 years ago

The current implementation has issues that lead to invalid eth signatures.

E.g. Decimal(20) was converted to "2", and Decimal("2.0") was converted to "2.". This PR fixes these issues.