From 8e46c56e2755cf2126dabfd5f4bee7f51948605d Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Mon, 10 Apr 2023 00:41:58 -0700 Subject: pds: fix tests from repo write_commit() change --- adenosine-pds/src/lib.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs index 5a2266e..c267135 100644 --- a/adenosine-pds/src/lib.rs +++ b/adenosine-pds/src/lib.rs @@ -504,14 +504,10 @@ pub fn create_account( srv.atp_db.put_did_doc(&did, &did_doc)?; // insert empty MST repository - let root_cid = { - let empty_map_cid = srv.repo.mst_from_map(&Default::default())?; - let meta_cid = srv.repo.write_metadata(&did)?; - srv.repo.write_root(meta_cid, None, empty_map_cid)? - }; - let _commit_cid = srv.repo.write_commit(&did, root_cid, "XXX-dummy-sig")?; - let keypair = srv.pds_keypair.clone(); + let empty_map_cid = srv.repo.mst_from_map(&Default::default())?; + let _commit_cid = srv.repo.write_commit(&did, None, empty_map_cid, &keypair)?; + let sess = srv .atp_db .create_session(&req.handle, &req.password, &keypair)?; -- cgit v1.2.3