Skip to content

Commit

Permalink
Merge pull request #354 from dusk-network/wasmtime-19
Browse files Browse the repository at this point in the history
Upgrade to `dusk-wasmtime` version `19`
  • Loading branch information
Eduardo Leegwater Simões authored Apr 15, 2024
2 parents a9c64e7 + 9149cde commit 2397100
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions piecrust/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Upgrade `dusk-wasmtime` to version `19`

## [0.18.0] - 2024-03-27

### Added
Expand Down
2 changes: 1 addition & 1 deletion piecrust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ license = "MPL-2.0"
crumbles = { version = "0.3", path = "../crumbles" }
piecrust-uplink = { version = "0.11", path = "../piecrust-uplink" }

dusk-wasmtime = { version = "18", default-features = false, features = ["cranelift", "runtime", "parallel-compilation"] }
dusk-wasmtime = { version = "19", default-features = false, features = ["cranelift", "runtime", "parallel-compilation"] }
bytecheck = "0.6"
rkyv = { version = "0.7", features = ["size_32", "validation"] }
blake3 = "1"
Expand Down
4 changes: 2 additions & 2 deletions piecrust/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl WrappedInstance {
return Err(Error::InvalidFunction(func_name.to_string()));
}
let param = params.next().unwrap();
if param != ValType::I32 {
if !param.matches(&ValType::I32) {
return Err(Error::InvalidFunction(func_name.to_string()));
}

Expand All @@ -140,7 +140,7 @@ impl WrappedInstance {
return Err(Error::InvalidFunction(func_name.to_string()));
}
let result = results.next().unwrap();
if result != ValType::I32 {
if !result.matches(&ValType::I32) {
return Err(Error::InvalidFunction(func_name.to_string()));
}
}
Expand Down

0 comments on commit 2397100

Please sign in to comment.