pub fn assert_cast_vote_success(
    voter: &str,
    amount: u128,
    poll_id: u64,
    vote_option: VoteOption,
    execute_res: Response,
) {
    assert_eq!(
        execute_res.attributes,
        vec![
            attr("action", "cast_vote"),
            attr("poll_id", poll_id.to_string()),
            attr("amount", amount.to_string()),
            attr("voter", voter),
            attr("vote_option", vote_option.to_string()),
        ]
    );
}
/**
 * Assert helper to confirm the expected cast_vote response
 */
Assert helper to confirm the expected cast_vote response
Assert helper to confirm the expected cast_vote response
pub fn assert_cast_vote_success(
    voter: &str,
    amount: u128,
    poll_id: u64,
    vote_option: VoteOption,
    execute_res: Response,
) {
    assert_eq!(
        execute_res.attributes,
        vec![
            attr("action", "cast_vote"),
            attr("poll_id", poll_id.to_string()),
            attr("amount", amount.to_string()),
            attr("voter", voter),
            attr("vote_option", vote_option.to_string()),
        ]
    );
}
pub fn assert_cast_vote_success ( voter : & str , amount : u128 , poll_id : u64 , vote_option : VoteOption , execute_res : Response , ) { assert_eq ! ( execute_res attributes vec [ attr ( " " " " ) attr ( " " poll_id to_string ( ) ) attr ( " " amount to_string ( ) ) attr ( " " voter ) attr ( " " vote_option to_string ( ) ) ] ) ; }
Assert helper to confirm the expected cast_vote response
Assert helper to confirm the expected cast_vote response
voter
&str
amount
u128
poll_id
u64
vote_option
VoteOption
execute_res
Response
voter
&str
amount
u128
poll_id
u64
vote_option
VoteOption
execute_res
Response