Skip to content

Commit

Permalink
Update ZkProgram proof detection during deployment (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymekuria authored May 16, 2024
1 parent 2795090 commit f215954
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,22 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## Unreleased

## [0.21.0](https://github.com/o1-labs/zkapp-cli/compare/0.20.1...0.21.0) - 2024-05-16

### Breaking changes

- NodeJS minimum version changed in order to reflect the `o1js` requirements. [#641](https://github.com/o1-labs/zkapp-cli/pull/641)

### Changed

- Update ZkProgram proof detection during deployment [#649](https://github.com/o1-labs/zkapp-cli/pull/649)

- Improved `SmartContract` classes inheritance lookup used during the zkApps deployment procedure. [#640](https://github.com/o1-labs/zkapp-cli/pull/640)

### Fixed

- Handle case when ZkProgram name argument is in double quotes during deployment [#649](https://github.com/o1-labs/zkapp-cli/pull/649)

## [0.20.2](https://github.com/o1-labs/zkapp-cli/compare/0.20.1...0.20.2) - 2024-05-07

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zkapp-cli",
"version": "0.20.3",
"version": "0.21.0",
"description": "CLI to create zkApps (zero-knowledge apps) for Mina Protocol",
"homepage": "https://github.com/o1-labs/zkapp-cli/",
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion src/lib/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,8 @@ async function findZkProgramFile(buildPath, zkProgramNameArg) {
// that has a matching name argument that is verified in the smart contract
// to be deployed.
const regex =
/(\w+)\s*=\s*ZkProgram\(\{[\s\S]*?name:\s*'([\w-]+)'[\s\S]*?\}\);/g;
/(\w+)\s*=\s*ZkProgram\(\{[\s\S]*?name:\s*['"]([\w-]+)['"][\s\S]*?\}\);/g;

let match;

while ((match = regex.exec(zkProgram)) !== null) {
Expand Down

0 comments on commit f215954

Please sign in to comment.