InjectiveLabs / cw-counter

Example contract for the Docs
Apache License 2.0
1 stars 4 forks source link

[DOCS]: invalid argument when calling `instantiate` function #1

Open ricardo-cavalheiro opened 1 year ago

ricardo-cavalheiro commented 1 year ago

Go to this section on the documentation.

If I run the given command it throws an error stating the message payload ('{"count":"99"}') is invalid. You can see the transaction failure here: https://testnet.explorer.injective.network/account/inj1kpps36y8c5qm9axr5w3v3ukqtth99pq40ga84e/ (look at the blocks #8531385 and #8531544).

Now, if I run the same given command but with the message payload slightly modified ({"count":99}'), the transaction succeeds.

I'm just getting started with Injective so I don't know upfront if there are any implications on switching the data type from string to integer (will large numbers work?).

arcayne commented 1 year ago

I will check on this @ricardo-passos