This repo hase been migrated and upgraded to CairOpen
A discussion in Starknet Shamans is open to validate the string standard here
A set of librairies in Cairo for use on StarkNet
License: MIT License
Similar to https://github.com/0xs34n/starknet.js/blob/develop/README.md
It would be good to get some info on how we can use this library for the utilities.
Thank you!
calling String_felt_to_string function with parameter 1
func felt_to_string{
syscall_ptr : felt*, range_check_ptr, pedersen_ptr : HashBuiltin*
}(elem : felt) -> (str_len : felt, str : felt*):
let (str1_len, str1) = String_felt_to_string(elem)
return (str1_len,str1)
end
got error
{"code": "StarknetErrorCode.SECURITY_ERROR", "message": "Invalid memory value at address 1:62: 12:3618502788666131213697322783095070105623107215331596699973092056135872020480."}
Hello team.
I have been working on a web UI that uses your library https://cairo-utils-web.vercel.app (repo).
During the use I can see that the library works as intended for a string like "ciao" -> 1667850607. But it returns a wrong result when the input is a simple number "1" -> 49, instead of "1" (both decimal and hex outputs are wrong).
I compared the output with something created by another person at https://util.turbofish.co/
Are you aware of this issue?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.