Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
petscheit authored Apr 23, 2024
1 parent 78dcd7a commit 470e11c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ As these functions are written in cairo0, we rely on git submodules for using th

E.g. like this:
```gitmodules
[submodule "packages/eth-essentials"]
path = packages/eth-essentials
url = https://github.com/HerodotusDev/eth-essentials.git
[submodule "packages/eth_essentials"]
path = packages/eth_essentials
url = https://github.com/HerodotusDev/eth_essentials.git
```

When compiling your program, it is important to set the `CAIRO_PATH` environment variable to the path of the `eth-essentials` directory. This is necessary for the compiler to find the imported functions. For the example above, this would look like this: `cairo-compile --cairo_path="packages/eth-essentials" ...`
When compiling your program, it is important to set the `CAIRO_PATH` environment variable to the path of the `eth_essentials` directory. This is necessary for the compiler to find the imported functions. For the example above, this would look like this: `cairo-compile --cairo_path="packages/eth_essentials" ...`

Now the functions can be imported like this:

Expand Down

0 comments on commit 470e11c

Please sign in to comment.