fn relay_anchor_update_proposal(
	src_chain_id: u32,
	resource_id: &[u8; 32],
	prop_id: u64,
	edge_metadata: EdgeMetadata<ChainId, Element, <Test as frame_system::Config>::BlockNumber>,
) {
	// create anchor update proposal
	let resource = b"AnchorHandler.execute_anchor_update_proposal".to_vec();
	let update_proposal = make_anchor_update_proposal(resource_id, edge_metadata.clone());
	// set resource id
	assert_ok!(Bridge::set_resource(Origin::root(), *resource_id, resource));
	// make proposals
	assert_ok!(Bridge::acknowledge_proposal(
		Origin::signed(RELAYER_A),
		prop_id,
		src_chain_id,
		*resource_id,
		Box::new(update_proposal.clone())
	));
	assert_ok!(Bridge::acknowledge_proposal(
		Origin::signed(RELAYER_B),
		prop_id,
		src_chain_id,
		*resource_id,
		Box::new(update_proposal.clone())
	));
}
// helper function to add relayers and then make a proposal
helper function to add relayers and then make a proposal
helper function to add relayers and then make a proposal
fn relay_anchor_update_proposal(
	src_chain_id: u32,
	resource_id: &[u8; 32],
	prop_id: u64,
	edge_metadata: EdgeMetadata<ChainId, Element, <Test as frame_system::Config>::BlockNumber>,
) {
	// create anchor update proposal
	let resource = b"AnchorHandler.execute_anchor_update_proposal".to_vec();
	let update_proposal = make_anchor_update_proposal(resource_id, edge_metadata.clone());
	// set resource id
	assert_ok!(Bridge::set_resource(Origin::root(), *resource_id, resource));
	// make proposals
	assert_ok!(Bridge::acknowledge_proposal(
		Origin::signed(RELAYER_A),
		prop_id,
		src_chain_id,
		*resource_id,
		Box::new(update_proposal.clone())
	));
	assert_ok!(Bridge::acknowledge_proposal(
		Origin::signed(RELAYER_B),
		prop_id,
		src_chain_id,
		*resource_id,
		Box::new(update_proposal.clone())
	));
}
fn relay_anchor_update_proposal ( src_chain_id : u32 , resource_id : & [ u8 ; 32 ] , prop_id : u64 , edge_metadata : EdgeMetadata < ChainId , Element , < Test as frame_system :: Config > :: BlockNumber > , ) { // create anchor update proposal let resource = b" " . to_vec ( ) ; let update_proposal = make_anchor_update_proposal ( resource_id , edge_metadata . clone ( ) ) ; // set resource id assert_ok ! ( Bridge set_resource ( Origin root ( ) resource_id resource ) ) ; // make proposals assert_ok ! ( Bridge acknowledge_proposal ( Origin signed ( RELAYER_A ) prop_id src_chain_id resource_id Box new ( update_proposal clone ( ) ) ) ) ; assert_ok ! ( Bridge acknowledge_proposal ( Origin signed ( RELAYER_B ) prop_id src_chain_id resource_id Box new ( update_proposal clone ( ) ) ) ) ; }
helper function to add relayers and then make a proposal
helper function to add relayers and then make a proposal
src_chain_id
u32
resource_id
&[u8; 32]
prop_id
u64
edge_metadata
EdgeMetadata<ChainId, Element, <Test as frame_system::Config>::BlockNumber>