fn build_script(&self, backer_address: &String) -> String {
        let reg = Handlebars::new();
        let finalized_script = reg.render_template(CROWDFUND_TEMPLATE, 
        &json!({"backer": backer_address
            ,"address": self.address
            ,"deadline": self.deadline.to_string()
            ,"goal": self.goal.to_string()
        }));

        finalized_script.expect("Failed to produce crowdfunding script.")
    }
/// Builds the crowdfunding script with the required fields filled in
Builds the crowdfunding script with the required fields filled in
Builds the crowdfunding script with the required fields filled in
fn build_script(&self, backer_address: &String) -> String {
        let reg = Handlebars::new();
        let finalized_script = reg.render_template(CROWDFUND_TEMPLATE, 
        &json!({"backer": backer_address
            ,"address": self.address
            ,"deadline": self.deadline.to_string()
            ,"goal": self.goal.to_string()
        }));
        finalized_script.expect("Failed to produce crowdfunding script.")
    }
fn build_script ( & self , backer_address : & String ) -> String { let reg = Handlebars :: new ( ) ; let finalized_script = reg . render_template ( CROWDFUND_TEMPLATE , & json ! ( { " " backer_address " " self address " " self deadline to_string ( ) " " self goal to_string ( ) } ) ) ; finalized_script . expect ( " " ) }
Builds the crowdfunding script with the required fields filled in
Builds the crowdfunding script with the required fields filled in
&self
backer_address
&String
&self
backer_address
&String