Introduce hex/string printing in runtime.

This commit is contained in:
Gav
2018-01-27 13:42:40 +01:00
parent ace1387076
commit d97520c7f0
10 changed files with 34 additions and 12 deletions
+4 -4
View File
@@ -30,16 +30,16 @@ fn test_ed25519_verify(input: &[u8]) -> Vec<u8> {
}
fn test_data_in(input: &[u8]) -> Vec<u8> {
print(b"set_storage" as &[u8]);
print("set_storage");
set_storage(b"input", &input);
print(b"storage" as &[u8]);
print("storage");
let foo = storage(b"foo");
print(b"set_storage" as &[u8]);
print("set_storage");
set_storage(b"baz", &foo);
print(b"finished!" as &[u8]);
print("finished!");
b"all ok!".to_vec()
}