diff --git a/libwasmvm/Cargo.lock b/libwasmvm/Cargo.lock index 4cb79f72a..117dd48cd 100644 --- a/libwasmvm/Cargo.lock +++ b/libwasmvm/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" diff --git a/libwasmvm/src/cache.rs b/libwasmvm/src/cache.rs index 064abcd5b..183f7b30e 100644 --- a/libwasmvm/src/cache.rs +++ b/libwasmvm/src/cache.rs @@ -797,7 +797,7 @@ mod tests { assert!(!hackatom_report.has_ibc_entry_points); assert_eq!( hackatom_report.required_capabilities.consume().unwrap(), - b"" + b"cosmwasm_1_1,cosmwasm_1_2,cosmwasm_1_3,cosmwasm_1_4,cosmwasm_2_0,cosmwasm_2_1,cosmwasm_2_2" ); assert!(hackatom_report.contract_migrate_version.is_some); assert_eq!(hackatom_report.contract_migrate_version.value, 42); diff --git a/libwasmvm/src/tests.rs b/libwasmvm/src/tests.rs index 5c8a7f179..c677f3d11 100644 --- a/libwasmvm/src/tests.rs +++ b/libwasmvm/src/tests.rs @@ -18,11 +18,11 @@ fn handle_cpu_loop_with_cache() { let backend = mock_backend(&[]); let options = CacheOptions::new( TempDir::new().unwrap().path().to_path_buf(), - capabilities_from_csv("staking"), + capabilities_from_csv("cosmwasm_1_1,cosmwasm_1_2,cosmwasm_1_3,cosmwasm_1_4,cosmwasm_2_0,cosmwasm_2_1,cosmwasm_2_2,staking,iterator,stargate"), MEMORY_CACHE_SIZE, MEMORY_LIMIT, ); - let cache = unsafe { Cache::new(options) }.unwrap(); + let mut cache = unsafe { Cache::new(options) }.unwrap(); let options = InstanceOptions { gas_limit: GAS_LIMIT,