Skip to content

Commit

Permalink
Bump MODULE_SERIALIZATION_VERSION to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jan 15, 2024
1 parent b8dfe0c commit dbdd370
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ and this project adheres to
`::addr_canonicalize`/`::addr_humanize` for consistency.
- cosmwasm-vm: Add `BackendApi::addr_validate` to avoid having to do two calls
from Rust into Go.
- cosmwasm-vm: Upgrade Wasmer to 4.2.5
- cosmwasm-vm: Upgrade Wasmer to 4.2.5; Bump `MODULE_SERIALIZATION_VERSION` to
"v9".

[#1874]: https://github.com/CosmWasm/cosmwasm/pull/1874
[#1876]: https://github.com/CosmWasm/cosmwasm/pull/1876
Expand Down
11 changes: 7 additions & 4 deletions packages/vm/src/modules/file_system_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ use super::CachedModule;
/// - **v8**:<br>
/// New version because of Wasmer 4.1.2 -> 4.2.2 upgrade.
/// Module compatibility between Wasmer versions is not guaranteed.
const MODULE_SERIALIZATION_VERSION: &str = "v8";
/// - **v9**:<br>
/// New version because of Wasmer 4.2.2 -> 4.2.5 upgrade.
/// Module compatibility between Wasmer versions is not guaranteed.
const MODULE_SERIALIZATION_VERSION: &str = "v9";

/// Representation of a directory that contains compiled Wasm artifacts.
pub struct FileSystemCache {
Expand Down Expand Up @@ -311,7 +314,7 @@ mod tests {
cache.store(&checksum, &module).unwrap();

let mut globber = glob::glob(&format!(
"{}/v8-wasmer5/**/{}.module",
"{}/v9-wasmer5/**/{}.module",
tmp_dir.path().to_string_lossy(),
checksum
))
Expand Down Expand Up @@ -394,9 +397,9 @@ mod tests {
assert_eq!(
p.as_os_str(),
if cfg!(windows) {
"modules\\v8-wasmer17\\x86_64-nintendo-fuchsia-gnu-coff-01E9F9FE"
"modules\\v9-wasmer17\\x86_64-nintendo-fuchsia-gnu-coff-01E9F9FE"
} else {
"modules/v8-wasmer17/x86_64-nintendo-fuchsia-gnu-coff-01E9F9FE"
"modules/v9-wasmer17/x86_64-nintendo-fuchsia-gnu-coff-01E9F9FE"
}
);
}
Expand Down

0 comments on commit dbdd370

Please sign in to comment.