Skip to content

Commit

Permalink
make requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Sep 4, 2024
1 parent bb9ac8b commit d249eb6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
17 changes: 0 additions & 17 deletions cairo1-run/fibonacci.cairo

This file was deleted.

5 changes: 3 additions & 2 deletions examples/wasm-demo-cairo1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ To compile and run the example you need:
To build the example, first compile your Cairo 1.x program:

```sh
cairo1/bin/cairo-compile -r ./bitwise.cairo bitwise.sierra
../../cairo1/bin/cairo-compile -r ./bitwise.cairo bitwise.sierra
```
> It's important to use the `-r` flag. If not, the `main`function won't be recognized.

> It's important to use the `-r` flag. If not, the `main` function won't be recognized.
And then the WebAssembly package:

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/wasm-demo-cairo1/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn run_cairo_program() -> Result<String, JsError> {
..Default::default()
};

// using cairo-lang 1.1.1 and ../caigo-programs/cairo-1-programs/bitwise.cairo
// using cairo-lang 1.1.1 and wasm-demo-cairo1/bitwise.sierra
let sierra_program = match serde_json::from_slice(include_bytes!("../bitwise.sierra")) {
Ok(sierra) => sierra,
Err(_) => {
Expand Down

0 comments on commit d249eb6

Please sign in to comment.