NEWTON
Asked
4 months ago
151
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
Does Account Abstraction support "Burner Accounts"?
How do I use Create React App in StarknetJS?
How does Account Abstraction improve the UX compared to other methods?
What is the difference between tempvar/let in Cairo Lang? How to use allow_locals and local?
Hey, is there anyway to debug Cairo contracts in hardhat environment? Something like hardhat console in solidity
What the etherscan equivalent for starknet is ?
A switch statement in Cairo lang to set two distinct values