Skip to content

Commit

Permalink
[test] web3wagers#137 fix errors surged after merging with dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgezerpa committed Oct 25, 2024
1 parent 4f08647 commit c1d92fe
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions contracts/src/fund.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ mod Fund {
#[derive(Drop, starknet::Event)]
enum Event {
DonationWithdraw: DonationWithdraw,
NewVoteReceived: NewVoteReceived
}

#[derive(Drop, starknet::Event)]
Expand All @@ -51,6 +52,13 @@ mod Fund {
pub withdrawn_amount: u256
}

#[derive(Drop, starknet::Event)]
pub struct NewVoteReceived {
#[key]
pub voter: ContractAddress,
pub fund: ContractAddress,
pub votes: u32
}
// *************************************************************************
// STORAGE
// *************************************************************************
Expand Down Expand Up @@ -84,24 +92,6 @@ mod Fund {
self.state.write(FundStates::RECOLLECTING_VOTES);
}

// *************************************************************************
// EVENTS
// *************************************************************************
#[event]
#[derive(Drop, starknet::Event)]
enum Event {
NewVoteReceived: NewVoteReceived
}

#[derive(Drop, starknet::Event)]
pub struct NewVoteReceived {
#[key]
pub voter: ContractAddress,
pub fund: ContractAddress,
pub votes: u32
}


// *************************************************************************
// EXTERNALS
// *************************************************************************
Expand Down

0 comments on commit c1d92fe

Please sign in to comment.