Skip to content

Commit

Permalink
Fix two wrong host function signatures (#244)
Browse files Browse the repository at this point in the history
* Fix two wrong host function signatures

* PR link
  • Loading branch information
tomaka authored Feb 28, 2023
1 parent 9f44aaf commit 0e65567
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/executor/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4092,7 +4092,7 @@ impl HostFunction {
crate::signature!((vm::ValueType::I64, vm::ValueType::I64) => vm::ValueType::I64)
}
HostFunction::ext_default_child_storage_read_version_1 => {
crate::signature!((vm::ValueType::I64, vm::ValueType::I64, vm::ValueType::I64, vm::ValueType::I64) => vm::ValueType::I64)
crate::signature!((vm::ValueType::I64, vm::ValueType::I64, vm::ValueType::I64, vm::ValueType::I32) => vm::ValueType::I64)
}
HostFunction::ext_default_child_storage_storage_kill_version_1 => {
crate::signature!((vm::ValueType::I64) => ())
Expand Down Expand Up @@ -4125,7 +4125,7 @@ impl HostFunction {
crate::signature!((vm::ValueType::I64) => vm::ValueType::I64)
}
HostFunction::ext_default_child_storage_root_version_2 => {
crate::signature!((vm::ValueType::I64, vm::ValueType::I32) => vm::ValueType::I32)
crate::signature!((vm::ValueType::I64, vm::ValueType::I32) => vm::ValueType::I64)
}
HostFunction::ext_crypto_ed25519_public_keys_version_1 => {
crate::signature!((vm::ValueType::I32) => vm::ValueType::I64)
Expand Down
1 change: 1 addition & 0 deletions wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

## Fixed

- Fix the signatures of the `ext_default_child_storage_read_version_1` and `ext_default_child_storage_root_version_2` host functions. This would lead to a warning about these function being unresolved. ([#244](https://github.com/smol-dot/smoldot/pull/244))
- Fix panic when the input data of a Wasm function call is larger than a Wasm page. ([#218](https://github.com/smol-dot/smoldot/pull/218))
- Subscriptions to the `chain_subscribeAllHeads` JSON-RPC function now generate notifications named `chain_allHead`, like in Substrate. They were erroneously named `chain_newHead`. ([#227](https://github.com/smol-dot/smoldot/pull/227))

Expand Down

0 comments on commit 0e65567

Please sign in to comment.