From 9494f765a06037e991dd60524f2ed1b14649bfd6 Mon Sep 17 00:00:00 2001 From: Ashley Ruglys Date: Mon, 9 Aug 2021 10:46:46 +0200 Subject: [PATCH] Add a warning for use_native --- client/executor/src/native_executor.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/executor/src/native_executor.rs b/client/executor/src/native_executor.rs index dfd01ec11cc6a..8acc3c182aa70 100644 --- a/client/executor/src/native_executor.rs +++ b/client/executor/src/native_executor.rs @@ -281,9 +281,13 @@ impl CodeExecutor for WasmExecutor { runtime_code: &RuntimeCode, method: &str, data: &[u8], - _use_native: bool, + use_native: bool, _native_call: Option, ) -> (Result>, 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,