Git Product home page Git Product logo

starknet-libs's Introduction

Sekai StarkNet Libraries

This repo hase been migrated and upgraded to CairOpen

A discussion in Starknet Shamans is open to validate the string standard here

starknet-libs's People

Contributors

jag-lotus avatar

Stargazers

 avatar Mehdi-DeFiesta avatar code46ash avatar nuno avatar El patron avatar Testin Prod avatar nael avatar MΞHDI avatar Rogelio Morrell avatar  avatar sudo rm -rf --no-preserve-root / avatar  avatar Easy Rider avatar StarkNet 中文 | China avatar Kevin Kelche avatar yashwant.eth avatar Jani Anttonen avatar clacla avatar Filip Laurentiu avatar Bob Niu avatar mempoolsurfer avatar cornpotage avatar Chris Lexmond avatar  avatar sam avatar Carl Lippert avatar mst avatar threepwave avatar Bakuchi avatar Loaf avatar refcell avatar Rajiv Patel-O'Connor avatar Sean Luke avatar John Johnson avatar Georgios Konstantopoulos avatar  avatar Milan Cermak avatar Tche avatar Henri avatar Peteris Erins avatar

Watchers

 avatar

starknet-libs's Issues

String_felt_to_string throws "Invalid memory value at address" error

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."}

Wrong conversion from string to short string felt for simple numbers

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.