Commit 2618fb4a authored by Andrew Jones's avatar Andrew Jones

Add some logging contract

parent e08d300c
Pipeline #69429 failed with stages
in 14 minutes and 53 seconds
......@@ -38,9 +38,12 @@ mod runtime {
const BALANCE_OF: &[u8] = b"balance:";
let key = account.to_keyed_vec(BALANCE_OF);
match self.env().get_runtime_storage::<Balance>(&key) {
Ok(balance) => balance,
Ok(balance) => {
self.env().println("get_runtime_storage: Read balance Ok");
balance
},
Err(_) => {
self.env().println("Error reading balance");
self.env().println("get_runtime_storage: Error reading balance");
0
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment