Contracts: clean (#788)

* Extract `runtime` module

* Restructure & comment code to avoid confusion
This commit is contained in:
Sergey Pepyakin
2018-09-24 13:31:00 +02:00
committed by Arkadiy Paronyan
parent da991efd5f
commit ef97973178
6 changed files with 397 additions and 357 deletions
+2
View File
@@ -90,6 +90,7 @@ impl<'a, T: Trait> ExecutionContext<'a, T> {
ctx: &mut nested,
_caller: caller,
},
&::vm::Config::default(),
gas_meter,
).map_err(|_| "vm execute returned error while call")?;
}
@@ -154,6 +155,7 @@ impl<'a, T: Trait> ExecutionContext<'a, T> {
ctx: &mut nested,
_caller: caller,
},
&::vm::Config::default(),
gas_meter,
).map_err(|_| "vm execute returned error while create")?;