diff --git a/examples/greeting/src/main.rs b/examples/greeting/src/main.rs index 1cda0857..3c541d4f 100644 --- a/examples/greeting/src/main.rs +++ b/examples/greeting/src/main.rs @@ -26,15 +26,6 @@ pub fn greeting(name: String) -> String { format!("Hi, {}", name) } -#[marine] -pub fn greeting_array(name: Vec<u8>) -> String { - let mut s = String::new(); - for byte in name { - s.push(byte as char); - } - format!("Hi, {}", s) -} - #[cfg(test)] mod tests { use marine_rs_sdk_test::marine_test; diff --git a/web-runtime/marine-js.js b/web-runtime/marine-js.js index 7bcc87c3..0187e06e 100644 --- a/web-runtime/marine-js.js +++ b/web-runtime/marine-js.js @@ -55,17 +55,17 @@ export function read_byte(module_name, offset) { module.exports.call_export = function (instance, export_name, args) { //console.log("JS: call_export called with: ", instance, export_name, args) let parsed_args = JSON.parse(args); - console.log("parsed args: ", args); + //console.log("parsed args: ", args); let prepared_args = []; for (let i = 0; i < parsed_args.length; i++) { let arg = parsed_args[i]; - console.log(arg) + // console.log(arg) prepared_args.push(arg["I32"]) } - console.log("prepared args: ", prepared_args); + //console.log("prepared args: ", prepared_args); let result = instance.exports[export_name](...prepared_args); - console.log("got result: ", result) + //console.log("got result: ", result) let json_string = "[]"; if (result !== undefined) { json_string = "[" + JSON.stringify(result) + "]"