Skip to content

Commit

Permalink
fix: multisig getter functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Itshyphen committed Oct 23, 2024
1 parent d615d88 commit 37686aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/sui/multisig/sources/multisig.move
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ module multisig::multisig {
event::emit(Executed {proposal_id:proposal_id,command:command});
}

public fun isProposalApproved(storage:&Storage,proposal_id:u64):bool{
public fun is_proposal_approved(storage:&Storage,proposal_id:u64):bool{
let proposal=storage.proposals.borrow(proposal_id);
let wallet=storage.wallets.get(&proposal.multisig_address);
let mut signatures:vector<vector<u8>> = vector::empty();
Expand All @@ -249,10 +249,10 @@ module multisig::multisig {
signatures.length()>=wallet.threshold as u64
}

public fun hasMemberApproved(storage:&Storage,proposal_id:u64,ctx:&TxContext):bool{
public fun has_member_voted(storage:&Storage,proposal_id:u64,member:address):bool{
let key=VoteKey{
proposal_id:proposal_id,
sui_address:ctx.sender()
sui_address:member
};
storage.votes.contains(key)
}
Expand Down

0 comments on commit 37686aa

Please sign in to comment.