···
1155
1155
)?;
1156
1156
1157
1157
let did = Did::new("did:plc:inze6wrmsm7pjl7yta3oig77".to_string()).unwrap();
1158
1158
+
let cid: Cid = "bafyreidofvwoqvd2cnzbun6dkzgfucxh57tirf3ohhde7lsvh4fu3jehgy"
1159
1159
+
.parse()
1160
1160
+
.unwrap();
1158
1161
let event = CommitEvent {
1159
1162
collection: Nsid::new("a.b.c".to_string()).unwrap(),
1160
1163
rkey: RecordKey::new("asdf".to_string()).unwrap(),
1161
1164
rev: "asdf".to_string(),
1162
1165
operation: CommitOp::Create,
1163
1166
record: Some(*Box::new(RawValue::from_string("{}".to_string()).unwrap())),
1164
1164
-
cid: Some(
1165
1165
-
"bafyreidofvwoqvd2cnzbun6dkzgfucxh57tirf3ohhde7lsvh4fu3jehgy"
1166
1166
-
.parse()
1167
1167
-
.unwrap(),
1168
1168
-
),
1167
1167
+
cid: Some(cid),
1169
1168
};
1170
1169
let (commit, collection) =
1171
1170
UFOsCommit::from_commit_info(event, did.clone(), Cursor::from_raw_u64(100))?;