NEWTON
Asked
6 months ago
154
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
6 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
6 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
How to divide felt in Cairo Lang using unsigned_div_rem?
How can I send a Uint256 amount of ERC20 tokens from L1 to starknet? And how should I build my payload for "sendMessageToL2" to match the Uint256 format of Cairo?
What is the technical difference of Kakarot compare to Nethermind's Warp?
Is there a javascript version of StarkEx playground?
Cairo error: Accessing struct/tuple members for r-value structs is not supported yet
An error “AssertionError: Sender must be passed explicitly when making a direct declaration using —no_wallet.” using the new nile?
Does Account Abstraction support "Session Keys"?