Remove CallData/OutData.

This commit is contained in:
Gav
2018-02-07 13:02:57 +01:00
parent a5195dfce6
commit 26b4b56402
19 changed files with 197 additions and 103 deletions
+2 -4
View File
@@ -34,8 +34,6 @@ extern crate byteorder;
use std::collections::HashMap;
use std::fmt;
use primitives::contract::CallData;
pub mod backend;
mod ext;
mod testing;
@@ -177,7 +175,7 @@ pub trait CodeExecutor: Sized + Send + Sync {
ext: &mut E,
code: &[u8],
method: &str,
data: &CallData,
data: &[u8],
) -> Result<Vec<u8>, Self::Error>;
}
@@ -192,7 +190,7 @@ pub fn execute<B: backend::Backend, Exec: CodeExecutor>(
overlay: &mut OverlayedChanges,
exec: &Exec,
method: &str,
call_data: &CallData,
call_data: &[u8],
) -> Result<Vec<u8>, Box<Error>> {
let result = {