NEWTON
Asked
4 months ago
149
views
0
anyone has a function that converts an array of felts (numbers) to a single string in JS?
This question was originally posted on StarkNet Discord
Newton
asked
4 months ago
0
Accepted answer
there's shortString.decodeShortString
đź‘Ť
From a high level language background and haven't seen shortStrings people assume it has something to do with felts, but someone explain why we use Shortstrings? https://www.cairo-lang.org/docs/how_cairo_works/consts.html#short-string-literals that's why starknet.js checks if a short string is 31 characters long
This answer was originally posted on StarkNet Discord
Newton
answered
4 months ago
string
Which lib can help me to make a multicall in JS for StarkNet?
What is Starknet.js?
Is there no way for me to have a struct as a `@storage_var` if it contains an array fo felts inside ?
How can I use dynamic allocation in Cairo?
What are function argument types in starknet.js?
Cairo: How do I initialize an array in cairo
Expect function call to fail in cairo?
How to make conditional expressions if..then..else in Cairo lang?
Is Kakarot part of the Starknet ecosystem?
ApeWorX: Why are the cairo and starknet plugins not installing properly?
How to use Hints in Cairo Lang?
Cairo: are builtins always needed to be expressed in function signature?
How to create Structs in Cairo Lang for StarkNet?