// Make a proposal for neuron 0 and call proccess proposals. The
// following graph is set up to cascade following, so the proposal
// will be accepted when submitted and executed in the call to process
// proposals.
Make a proposal for neuron 0 and call proccess proposals. The
following graph is set up to cascade following, so the proposal
will be accepted when submitted and executed in the call to process
proposals.
Make a proposal for neuron 0 and call proccess proposals . The following graph is set up to cascade following so the proposal will be accepted when submitted and executed in the call to process proposals .
fn make_and_process_proposal(gov: &mut Governance) {
    gov.make_proposal(
        &NeuronId { id: 0 },
        // Must match neuron 1's serialized_id.
        &PrincipalId::try_from(b"SID0".to_vec()).unwrap(),
        &Proposal {
            summary: "test".to_string(),
            action: Some(proposal::Action::Motion(Motion {
                motion_text: "dummy text".to_string(),
            })),
            ..Default::default()
        },
    )
    .unwrap();
    gov.run_periodic_tasks().now_or_never();
}
fn make_and_process_proposal ( gov : & mut Governance ) { gov . make_proposal ( & NeuronId { id : 0 } , // Must match neuron 1's serialized_id. & PrincipalId :: try_from ( b" " . to_vec ( ) ) . unwrap ( ) , & Proposal { summary : " " . to_string ( ) , action : Some ( proposal :: Action :: Motion ( Motion { motion_text : " " . to_string ( ) , } ) ) , .. Default :: default ( ) } , ) . unwrap ( ) ; gov . run_periodic_tasks ( ) . now_or_never ( ) ; }
Make a proposal for neuron 0 and call proccess proposals.
Make a proposal for neuron 0 and call proccess proposals .
gov
&mut Governance