You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// and [wasmvm 0.16.3](https://github.com/CosmWasm/wasmvm/blob/v0.16.3/libwasmvm/Cargo.lock#L1408-L1409).
26
+
/// Versions that ship with Wasmer 2.1.x such [as wasmvm 1.0.0-beta3](https://github.com/CosmWasm/wasmvm/blob/v1.0.0-beta3/libwasmvm/Cargo.lock#L1534-L1535)
27
+
/// to [wasmvm 1.0.0-beta5](https://github.com/CosmWasm/wasmvm/blob/v1.0.0-beta5/libwasmvm/Cargo.lock#L1530-L1531)
28
+
/// are broken, i.e. they will crash when reading older v1 modules.
29
+
/// - **v2**:<br>
30
+
/// Version for cosmwasm_vm 1.0.0-beta5 / wasmvm 1.0.0-beta6 that ships with Wasmer 2.1.1.
31
+
/// - **v3**:<br>
32
+
/// Version for Wasmer 2.2.0 which contains a [module breaking change to 2.1.x](https://github.com/wasmerio/wasmer/pull/2747).
33
+
constMODULE_SERIALIZATION_VERSION:&str = "v2";
18
34
19
35
/// Representation of a directory that contains compiled Wasm artifacts.
20
36
pubstructFileSystemCache{
@@ -173,7 +189,7 @@ mod tests {
173
189
let module = compile(&wasm,None,&[]).unwrap();
174
190
cache.store(&checksum,&module).unwrap();
175
191
176
-
let file_path = format!("{}/v1/{}", tmp_dir.path().to_string_lossy(), checksum);
192
+
let file_path = format!("{}/v2/{}", tmp_dir.path().to_string_lossy(), checksum);
177
193
let serialized_module = fs::read(file_path).unwrap();
0 commit comments