Skip to content

Commit

Permalink
feat: add deploy and rebuild on missing library dependencies (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
aon authored Mar 8, 2024
1 parent 224e5ae commit 17f0e08
Show file tree
Hide file tree
Showing 7 changed files with 620 additions and 118 deletions.
36 changes: 22 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,16 @@ Compiling smart contracts...
Compiled Successfully
```

#### Deploying missing libraries

In case missing libraries are detected during the compilation, we can deploy them using the following command:

```
$ zkforge zkcreate --deploy-missing-libraries --private-key <PRIVATE_KEY> --rpc-url <RPC_URL> --chain <CHAIN_ID>
```

After deployment is done, the configuration file will be updated and contracts will be automatically compiled again.

#### Running Tests

You can run the tests using `zkforge test`.
Expand Down
Loading

0 comments on commit 17f0e08

Please sign in to comment.