Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue: Maybe wrong directory #332

Closed
mutalisk999 opened this issue Oct 27, 2023 · 2 comments
Closed

issue: Maybe wrong directory #332

mutalisk999 opened this issue Oct 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@mutalisk999
Copy link
Contributor

mutalisk999 commented Oct 27, 2023

https://github.com/matter-labs/zksync-era/blame/677611e5ad813fb93d9bdebaa8d82d738e8bb971/core/bin/system-constants-generator/src/main.rs#L213

fn update_rust_system_constants(intrinsic_gas_constants: &IntrinsicSystemGasConstants) {
    let rust_fee_constants = generate_rust_fee_constants(intrinsic_gas_constants);
    save_file(
        "core/lib/config/src/constants/fees/intrinsic.rs",
        rust_fee_constants,
    );
}

Maybe it should be "core/lib/constants/src/fees/intrinsic.rs"

@popzxc
Copy link
Member

popzxc commented Oct 27, 2023

Thanks, you're probably right.

@popzxc popzxc added the bug Something isn't working label Oct 27, 2023
@mutalisk999
Copy link
Contributor Author

It is my pleasure. LOL
Has been fixed in PR #336.

github-merge-queue bot pushed a commit that referenced this issue Oct 27, 2023
# What ❔

Fix: incorrect directory of intrinsic.rs generated.  (#332)


change

```rust
fn update_rust_system_constants(intrinsic_gas_constants: &IntrinsicSystemGasConstants) {
    let rust_fee_constants = generate_rust_fee_constants(intrinsic_gas_constants);
    save_file(
        "core/lib/config/src/constants/fees/intrinsic.rs",
        rust_fee_constants,
    );
}
```

to

```rust
fn update_rust_system_constants(intrinsic_gas_constants: &IntrinsicSystemGasConstants) {
    let rust_fee_constants = generate_rust_fee_constants(intrinsic_gas_constants);
    save_file(
        "core/lib/constants/src/fees/intrinsic.rs",
        rust_fee_constants,
    );
}
```

## Why ❔

File `intrinsic.rs` is generated to dir `core/lib/constants/src/fees`.

## Checklist

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
github-merge-queue bot pushed a commit that referenced this issue Nov 3, 2023
🤖 I have created a release *beep* *boop*
---


##
[17.1.0](core-v16.2.0...core-v17.1.0)
(2023-11-03)


### ⚠ BREAKING CHANGES

* Update to protocol version 17
([#384](#384))

### Features

* **en:** Cache blocks in `fetch_l2_block`
([#403](#403))
([b94c845](b94c845))
* Port boojum eth-sender changes
([#293](#293))
([8027326](8027326))
* **state-keeper:** Disable some seal criteria for boojum
([#390](#390))
([2343532](2343532))
* Update to protocol version 17
([#384](#384))
([ba271a5](ba271a5))
* **vm:** Make calculation for pubdata a bit more percise
([#392](#392))
([6d0e61c](6d0e61c))


### Bug Fixes

* bump zksolc from yanked version to 1.3.16
([#348](#348))
([c32b88f](c32b88f))
* **db-index:** Add missing index from FRI prover jobs
([#334](#334))
([730447f](730447f))
* **db-query:** use join instead of nested query for FRI prover
extracting
([#364](#364))
([f9cc831](f9cc831))
* **db-query:** use nested query for requeuing FRI prover jobs
([#399](#399))
([3890542](3890542))
* incorrect directory of intrinsic.rs generated.
([#332](#332))
([#336](#336))
([eefaad0](eefaad0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: perekopskiy <53865202+perekopskiy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants