QuantumMechanics / NEM-sdk

NEM Developer Kit for Node.js and the browser
MIT License
137 stars 82 forks source link

Improper serialization of relativeChange #19

Open saleemrashid opened 7 years ago

saleemrashid commented 7 years ago

relativeChange is serialized improperly at https://github.com/QuantumMechanics/NEM-sdk/blob/master/src/utils/serialization.js#L443

This will only work for -10 < relativeChange < 10 (values where relativeChange.toString(16) == relativeChange).