Add a check to TokenSymbol
to match the same assertion as OCaml
#465
Labels
bug
Something isn't working
TokenSymbol
to match the same assertion as OCaml
#465
Description
In OCaml, we have an assertion to check the length of a token symbol to be a max length of
6
. We should additionally do this check-in SnarkyJS as well, to save the user time before sending it off to the network.Presumably, SnarkyJS is already doing this check but the length seems to be off. If we pass in a very long token symbol, we get the following stack trace:
We should just do the initial check of length
6
when setting the token symbol.The text was updated successfully, but these errors were encountered: