From 1c034cc63a883721bf9c422c6028785521082bb1 Mon Sep 17 00:00:00 2001 From: ismellike Date: Thu, 21 Mar 2024 21:59:53 -0500 Subject: [PATCH] Update contracts/dao-dao-core/src/contract.rs Co-authored-by: noah --- contracts/dao-dao-core/src/contract.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/dao-dao-core/src/contract.rs b/contracts/dao-dao-core/src/contract.rs index e3c0d30f1..1ee52a165 100644 --- a/contracts/dao-dao-core/src/contract.rs +++ b/contracts/dao-dao-core/src/contract.rs @@ -111,7 +111,7 @@ pub fn execute( if !expiration.is_expired(&env.block) { // If paused, then only allow messages from the Admin or DAO itself if info.sender != env.contract.address - && Some(info.sender.clone()) != ADMIN.may_load(deps.storage)? + && info.sender.clone() != ADMIN.load(deps.storage)? { return Err(ContractError::Paused {}); }