Skip to content

Commit 5c23ec8

Browse files
committed
Use strict condition in cast_vote
1 parent 28d1f2e commit 5c23ec8

File tree

1 file changed

+1
-1
lines changed
  • solana/programs/staking/src

1 file changed

+1
-1
lines changed

solana/programs/staking/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ pub mod staking {
487487
let current_timestamp: u64 = utils::clock::get_current_time().try_into()?;
488488
let vote_start = proposal.vote_start;
489489
require!(
490-
current_timestamp >= vote_start,
490+
current_timestamp > vote_start,
491491
ErrorCode::ProposalInactive
492492
);
493493

0 commit comments

Comments
 (0)