diff options
author | bryan newbold <bnewbold@robocracy.org> | 2023-04-10 00:41:58 -0700 |
---|---|---|
committer | bryan newbold <bnewbold@robocracy.org> | 2023-04-10 00:41:58 -0700 |
commit | 8e46c56e2755cf2126dabfd5f4bee7f51948605d (patch) | |
tree | 2adc48e09eb990b022757c803b31e4f98669a145 | |
parent | 8130a0886a9058d4cd4e9f56526ea8d546a3a51d (diff) | |
download | adenosine-repov2.tar.gz adenosine-repov2.zip |
pds: fix tests from repo write_commit() changerepov2
-rw-r--r-- | adenosine-pds/src/lib.rs | 10 |
1 files 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)?; |