async fn commit_invalid_post(
    bob_cell_id: &CellId,
    handle: &ConductorHandle,
    dna_file: &DnaFile,
) -> (HeaderHash, EntryHash) {
    // Bananas are not allowed
    let entry = Post("Banana".into());
    let entry_hash = EntryHash::with_data_sync(&Entry::try_from(entry.clone()).unwrap());
    // Create call data for the 3rd zome Create
    let call_data = HostFnCaller::create_for_zome(bob_cell_id, handle, dna_file, 2).await;
    // 9
    let invalid_header_hash = call_data
        .commit_entry(entry.clone().try_into().unwrap(), POST_ID)
        .await;

    // Produce and publish these commits
    let mut triggers = handle.get_cell_triggers(&bob_cell_id).await.unwrap();
    triggers.produce_dht_ops.trigger();
    (invalid_header_hash, entry_hash)
}
// Need to "hack holochain" because otherwise the invalid
// commit is caught by the call zome workflow
Need to "hack holochain" because otherwise the invalid
commit is caught by the call zome workflow
Need to " hack holochain " because otherwise the invalid commit is caught by the call zome workflow
async fn commit_invalid_post(
    bob_cell_id: &CellId,
    handle: &ConductorHandle,
    dna_file: &DnaFile,
) -> (HeaderHash, EntryHash) {
    // Bananas are not allowed
    let entry = Post("Banana".into());
    let entry_hash = EntryHash::with_data_sync(&Entry::try_from(entry.clone()).unwrap());
    // Create call data for the 3rd zome Create
    let call_data = HostFnCaller::create_for_zome(bob_cell_id, handle, dna_file, 2).await;
    // 9
    let invalid_header_hash = call_data
        .commit_entry(entry.clone().try_into().unwrap(), POST_ID)
        .await;
    // Produce and publish these commits
    let mut triggers = handle.get_cell_triggers(&bob_cell_id).await.unwrap();
    triggers.produce_dht_ops.trigger();
    (invalid_header_hash, entry_hash)
}
async fn commit_invalid_post ( bob_cell_id : & CellId , handle : & ConductorHandle , dna_file : & DnaFile , ) -> ( HeaderHash , EntryHash ) { // Bananas are not allowed let entry = Post ( " " . into ( ) ) ; let entry_hash = EntryHash :: with_data_sync ( & Entry :: try_from ( entry . clone ( ) ) . unwrap ( ) ) ; // Create call data for the 3rd zome Create let call_data = HostFnCaller :: create_for_zome ( bob_cell_id , handle , dna_file , 2 ) . await ; // 9 let invalid_header_hash = call_data . commit_entry ( entry . clone ( ) . try_into ( ) . unwrap ( ) , POST_ID ) . await ; // Produce and publish these commits let mut triggers = handle . get_cell_triggers ( & bob_cell_id ) . await . unwrap ( ) ; triggers . produce_dht_ops . trigger ( ) ; ( invalid_header_hash , entry_hash ) }
Need to "hack holochain" because otherwise the invalid
commit is caught by the call zome workflow
Need to " hack holochain " because otherwise the invalid commit is caught by the call zome workflow
bob_cell_id
&CellId
handle
&ConductorHandle
dna_file
&DnaFile
bob_cell_id
&CellId
handle
&ConductorHandle
dna_file
&DnaFile