Closed 6r1d closed 7 months ago
I found the problem, I was following an example from the unit tests that created value as Fixed
, instead of numericU32
.
Now I can pass quantity as number: "quantity": 100.0, I had to define the value as numericU32 to be parsed correctly.
Matías Salimbene reported an issue with types in Iroha JS SDK today.
The valueType is correctly registered as
Quantity
(not Fixed).Additionaly, Matías gets an error if he doesn't provide the quantity with decimal precision, i.e
quantity: "100"
fails, butquantity:"100.0"
is fine. He'd like to know whether this should be expected.Provided context:
stable-2.0.0-pre-rc.20
client/data model
:^7.0.0