Skip to content

Commit

Permalink
remove comment and add new
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki1frsh committed Aug 21, 2023
1 parent 7cf5119 commit 9d6a4ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::state::FAILED_REQUESTS;
use cosmwasm_std::{BankMsg, CosmosMsg};
use cosmwasm_std::{DepsMut, Env, MessageInfo, Response};

/// Only owner can execute it.
#[cfg(not(feature = "library"))]
pub fn execute_claim_failed_request(
deps: DepsMut,
Expand All @@ -14,6 +13,7 @@ pub fn execute_claim_failed_request(
) -> Result<Response, ContractError> {
let mut response = Response::new();

// This line returns error when the sender of the msg is not the correct emergency claimer.
let request = FAILED_REQUESTS.load(deps.storage, (&info.sender, msg.request_id))?;

FAILED_REQUESTS.remove(deps.storage, (&request.emergency_claimer, request.id));
Expand Down

0 comments on commit 9d6a4ba

Please sign in to comment.