v0.2.6-pre.016-fix.002
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-wallet-desk/tests/desktop_contract.rs
|
||||
// version: 17
|
||||
// version: 18
|
||||
|
||||
//! Desktop build, shell and Config-status contract audits for Wallet Desk.
|
||||
|
||||
@@ -16,6 +16,11 @@ fn read_text(path: &std::path::Path) -> String {
|
||||
};
|
||||
}
|
||||
|
||||
fn read_source(relative_path: &str) -> String {
|
||||
let root = app_root();
|
||||
return read_text(root.join(relative_path).as_path());
|
||||
}
|
||||
|
||||
fn read_json(path: &std::path::Path) -> serde_json::Value {
|
||||
let source = read_text(path);
|
||||
let parsed = serde_json::from_str::<serde_json::Value>(source.as_str());
|
||||
|
||||
Reference in New Issue
Block a user