Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Add a warning for use_native
Browse files Browse the repository at this point in the history
  • Loading branch information
expenses committed Aug 9, 2021
1 parent e4c72cd commit 9494f76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/executor/src/native_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,13 @@ impl CodeExecutor for WasmExecutor {
runtime_code: &RuntimeCode,
method: &str,
data: &[u8],
_use_native: bool,
use_native: bool,
_native_call: Option<NC>,
) -> (Result<NativeOrEncoded<R>>, bool) {
if use_native {
log::warn!("`use_native` is set to `true` when calling the `WasmExecutor`. Ignoring.");
}

let result = self.with_instance(
runtime_code,
ext,
Expand Down

0 comments on commit 9494f76

Please sign in to comment.