Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: sczembor <[email protected]>
  • Loading branch information
robert-zaremba and sczembor authored Nov 2, 2023
1 parent 732f1db commit 87e163c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/human_checker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Contract {

/// Simulates a governance voting. Every valid human (as per IAH registry) can vote.
/// To avoid double voting by an account who is doing soul_transfer while a proposal is
/// active, we reqiore that voing must be called through `iah_registry.is_human_call_lock`.
/// active, we require that voing must be called through `iah_registry.is_human_call_lock`.
/// We check that the caller set enough `lock_duration` for soul transfers.
/// Arguments:
/// * `caller`: account ID making a vote (passed by `iah_registry.is_human_call`)
Expand All @@ -92,7 +92,7 @@ impl Contract {
);
require!(
locked_until >= env::block_timestamp_ms() + VOTING_DURATION,
"account not locked for soult transfer for sufficient amount of time"
"account not locked for soul transfer for sufficient amount of time"
);
require!(payload.prop_id > 0, "invalid proposal id");
require!(
Expand Down

0 comments on commit 87e163c

Please sign in to comment.