Coder Social home page Coder Social logo

Support for Cairo 1.0 about thoth HOT 3 CLOSED

cwkang1998 avatar cwkang1998 commented on July 17, 2024
Support for Cairo 1.0

from thoth.

Comments (3)

pventuzelo avatar pventuzelo commented on July 17, 2024 2

Hey,
Thoth supports Cairo bytecode (casm) directly and is not affected by Cairo language modification.
It's also supporting Sierra files now so if you compile Cairo 1.0 contract you can provide the sierra file to Thoth instead of the JSON artifact.

You're welcome ;)

from thoth.

trangnv avatar trangnv commented on July 17, 2024
  • I tried to run thoth-sierra -f ./target/dev/hello_starknet.sierra -d
  • the sierra file is compiled from a cairo starknet contract file
  • But face the error ./target/dev/hello_starknet.sierra is not a valid sierra file.

When run thoth-sierra with a normal cairo program then it worked.

Any idea how to fix it?
Thank you

from thoth.

Rog3rSm1th avatar Rog3rSm1th commented on July 17, 2024

Thanks for the feedback!

It seems that it was due to a bug in the parser, the file hello_starknet.sierra has been added to the test files here and you can now decompile and analyse it without errors.

from thoth.

Related Issues (20)

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.