From 2f84ffd10ac72d9c9f169f6c2ec7933de2265c48 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Thu, 4 May 2017 11:08:11 +0400 Subject: [PATCH 1/2] Update static_contract.c --- samples/static_contract.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/static_contract.c b/samples/static_contract.c index d0c2bc1..8735bae 100644 --- a/samples/static_contract.c +++ b/samples/static_contract.c @@ -5,7 +5,7 @@ int call(void* descriptor) { data += *input_length; } -/* produces the following code (with gas counter) +/* produces the following code (with gas counter and call optimization) (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func)) @@ -35,4 +35,4 @@ int call(void* descriptor) { end) (export "_call" (func 1))) -*/ \ No newline at end of file +*/ From 740b8baec356af3787638090f64591f265994ce8 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Thu, 4 May 2017 11:25:43 +0400 Subject: [PATCH 2/2] Update logger_contract.rs --- samples/logger_contract.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/logger_contract.rs b/samples/logger_contract.rs index 44fece8..030eb2b 100644 --- a/samples/logger_contract.rs +++ b/samples/logger_contract.rs @@ -6,7 +6,7 @@ use std::slice; -#[link_args = "-s WASM=1 -s NO_EXIT_RUNTIME=1 -s NO_FILESYSTEM=1 -s"] +#[link_args = "-s WASM=1 -s NO_EXIT_RUNTIME=1 -s NO_FILESYSTEM=1"] extern {} /// Wrapper over storage read/write/size externs @@ -144,4 +144,4 @@ pub fn call(descriptor: *mut u8) { // Saves the wrapper state to commit return stream ctx.save(descriptor); -} \ No newline at end of file +}