Skip to content

Commit

Permalink
fix: incorrect directory of intrinsic.rs generated. (#332) (#336)
Browse files Browse the repository at this point in the history
# 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`.
  • Loading branch information
mutalisk999 authored Oct 27, 2023
1 parent e735ea8 commit eefaad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bin/system-constants-generator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ fn save_file(path_in_repo: &str, content: String) {
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",
"core/lib/constants/src/fees/intrinsic.rs",
rust_fee_constants,
);
}
Expand Down

0 comments on commit eefaad0

Please sign in to comment.