Skip to content

Commit

Permalink
Add minor fixes towards compilability
Browse files Browse the repository at this point in the history
  • Loading branch information
tensojka committed May 14, 2024
1 parent d4fdf9b commit 2884f06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 2 additions & 0 deletions tests/lib.cairo
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mod add_options;
mod basic;
mod test_treasury;
mod proposals_tests;
mod airdrop_tests;
10 changes: 2 additions & 8 deletions tests/proposals_tests.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ use snforge_std::{
BlockId, declare, ContractClassTrait, ContractClass, start_prank, start_warp, CheatTarget
};

mod setup;
use setup::{
use governance::testing::setup::{
deploy_governance, deploy_and_distribute_gov_tokens, test_vote_upgrade_root, check_if_healthy
};
use governance::contract::IGovernanceDispatcher;
Expand All @@ -23,10 +22,6 @@ use starknet::get_block_timestamp;

const GOV_TOKEN_INITIAL_SUPPLY: felt252 = 1000000000000000000;

const first_address: ContractAddress = 0x1.try_into().unwrap();
const second_address: ContractAddress = 0x2.try_into().unwrap();
const admin_addr: ContractAddress = 0x3.try_into().unwrap();


fn test_express_proposal() {
let gov_contract = deploy_governance();
Expand All @@ -41,7 +36,7 @@ fn test_express_proposal() {
start_prank(CheatTarget::One(gov_contract_addr), admin_addr);
dispatcher.vote(prop_id, 1);

assert(dispatcher.get_proposal_status(prop_id) == 1, "proposal not passed!");
assert!(dispatcher.get_proposal_status(prop_id) == 1, "proposal not passed!");
}

#[should_panic]
Expand Down Expand Up @@ -82,4 +77,3 @@ fn test_vote_on_expired_proposal() {
start_prank(CheatTarget::One(gov_contract_addr), first_address);
dispatcher.vote(prop_id, 1);
}

0 comments on commit 2884f06

Please sign in to comment.