Testing
fn test_instantiate_works() {
let mut deps = mock_dependencies_custom(&[]);
let info = mock_info(OWNER, &[]);
let max_voting_period = Duration::Time(1234567);
// No voters fails
let instantiate_msg = InstantiateMsg {
kernel_address: MOCK_KERNEL_CONTRACT.to_string(),
owner: None,
voters: vec![],
threshold: Threshold::ThresholdQuorum {
threshold: Decimal::zero(),
quorum: Decimal::percent(1),
},
max_voting_period,
};
/// the rest of the test is the same in both versionsfn test_instantiate_works() {
let mut deps = mock_dependencies();
let info = mock_info(OWNER, &[]);
let max_voting_period = Duration::Time(1234567);
// No voters fails
let instantiate_msg = InstantiateMsg {
voters: vec![],
threshold: Threshold::ThresholdQuorum {
threshold: Decimal::zero(),
quorum: Decimal::percent(1),
},
max_voting_period,
};
/// the rest of the test is the same in both versionsFurther Testing
Last updated
Was this helpful?