From 87e163cedb8f4cd063d873a4495e4ed4e1ffc35e Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Thu, 2 Nov 2023 13:42:11 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: sczembor <43810037+sczembor@users.noreply.github.com> --- contracts/human_checker/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/human_checker/src/lib.rs b/contracts/human_checker/src/lib.rs index 093946c..bc5c3eb 100644 --- a/contracts/human_checker/src/lib.rs +++ b/contracts/human_checker/src/lib.rs @@ -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`) @@ -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!(