Take and return the result in bytes (#842)

This commit is contained in:
Sergey Pepyakin
2018-09-29 18:56:00 +01:00
committed by Gav Wood
parent 6d8bea5137
commit f4eb08dae5
2 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ fn should_call_contract() {
let client = State::new(client, core.executor());
assert_matches!(
client.call("balanceOf".into(), vec![1,2,3], Some(genesis_hash).into()),
client.call("balanceOf".into(), Bytes(vec![1,2,3]), Some(genesis_hash).into()),
Err(Error(ErrorKind::Client(client::error::ErrorKind::Execution(_)), _))
)
}