From eefaad0e7e7766a269ee9022b3758be4ee32f1a1 Mon Sep 17 00:00:00 2001 From: Mutalisk <81849682@qq.com> Date: Fri, 27 Oct 2023 18:02:50 +0800 Subject: [PATCH] fix: incorrect directory of intrinsic.rs generated. (#332) (#336) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 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`. --- core/bin/system-constants-generator/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/bin/system-constants-generator/src/main.rs b/core/bin/system-constants-generator/src/main.rs index 52d714762e6a..ed906e1c9bb5 100644 --- a/core/bin/system-constants-generator/src/main.rs +++ b/core/bin/system-constants-generator/src/main.rs @@ -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, ); }