Merge branch 'vmtracing' into diffing
This commit is contained in:
commit
2d604324b9
@ -73,7 +73,7 @@ pub trait Ethcore: Sized + Send + Sync + 'static {
|
|||||||
fn default_extra_data(&self, _: Params) -> Result<Value, Error>;
|
fn default_extra_data(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Executes the given call and returns the VM trace for it.
|
/// Executes the given call and returns the VM trace for it.
|
||||||
fn vm_trace_call(&self, _: Params) -> Result<Value, Error> { rpc_unimplemented!() }
|
fn vm_trace_call(&self, _: Params) -> Result<Value, Error>;
|
||||||
|
|
||||||
/// Should be used to convert object to io delegate.
|
/// Should be used to convert object to io delegate.
|
||||||
fn to_delegate(self) -> IoDelegate<Self> {
|
fn to_delegate(self) -> IoDelegate<Self> {
|
||||||
|
@ -111,7 +111,6 @@ mod tests {
|
|||||||
fn test_transaction_serialize() {
|
fn test_transaction_serialize() {
|
||||||
let t = Transaction::default();
|
let t = Transaction::default();
|
||||||
let serialized = serde_json::to_string(&t).unwrap();
|
let serialized = serde_json::to_string(&t).unwrap();
|
||||||
// TODO: fix create.
|
|
||||||
assert_eq!(serialized, r#"{"hash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x00","blockHash":null,"blockNumber":null,"transactionIndex":null,"from":"0x0000000000000000000000000000000000000000","to":null,"value":"0x00","gasPrice":"0x00","gas":"0x00","input":"0x","creates":null}"#);
|
assert_eq!(serialized, r#"{"hash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x00","blockHash":null,"blockNumber":null,"transactionIndex":null,"from":"0x0000000000000000000000000000000000000000","to":null,"value":"0x00","gasPrice":"0x00","gas":"0x00","input":"0x","creates":null}"#);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user