more senseful input/context allocation

This commit is contained in:
NikVolf
2017-05-15 18:26:25 +03:00
parent bcdb942036
commit 1083eaa65d
2 changed files with 19 additions and 12 deletions
-3
View File
@@ -61,9 +61,6 @@ fn main() {
// Add module to the programm
let module_instance = program.add_module("contract", module).expect("Module to be added successfully");
// Create allocator
runtime.allocator().alloc(5*1024*1024).expect("to allocate 5mb successfully"); // reserve stack space
// Initialize call descriptor
let descriptor = call_args::init(
&*program.module("env").expect("env module to exist"),