8000 fix: remove nightly changes from parameters.snap by jakmeier · Pull Request #9612 · near/nearcore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: remove nightly changes from parameters.snap #9612

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

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/primitives/res/runtime_configs/parameters.snap
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ account_id_validity_rules_version 1
disable_9393_fix false
flat_storage_reads true
implicit_account_creation true
fix_contract_loading_cost true
fix_contract_loading_cost false
math_extension true
ed25519_verify true
alt_bn128 true
Expand Down
5 changes: 4 additions & 1 deletion core/primitives/src/runtime/config_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ mod tests {
#[cfg(not(feature = "calimero_zero_storage"))]
fn test_json_unchanged() {
use crate::views::RuntimeConfigView;
use near_primitives_core::version::PROTOCOL_VERSION;

let store = RuntimeConfigStore::new(None);
let mut any_failure = false;
Expand All @@ -332,7 +333,9 @@ mod tests {
// Store the latest values of parameters in a human-readable snapshot.
{
let mut params: ParameterTable = BASE_CONFIG.parse().unwrap();
for (_, diff_bytes) in CONFIG_DIFFS {
for (_, diff_bytes) in
CONFIG_DIFFS.iter().filter(|(version, _)| *version <= PROTOCOL_VERSION)
{
params.apply_diff(diff_bytes.parse().unwrap()).unwrap();
}
insta::with_settings!({
Expand Down
0