Skip to content

Commit

Permalink
Update libwasmvm version to 4 and enhance capabilities in cache and t…
Browse files Browse the repository at this point in the history
…ests; adjust dependencies for cosmwasm versions
  • Loading branch information
faddat committed Jan 9, 2025
1 parent d244eb2 commit 15f159a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libwasmvm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libwasmvm/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions libwasmvm/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 15f159a

Please sign in to comment.