Skip to content

Commit

Permalink
fix(timealarms): sudo remove alarm
Browse files Browse the repository at this point in the history
  • Loading branch information
go2bodhi committed Mar 29, 2023
1 parent 5c161ff commit a9fda35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/timealarms/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ pub fn execute(
}

#[cfg_attr(feature = "contract-with-bindings", entry_point)]
pub fn sudo(_deps: DepsMut<'_>, _env: Env, msg: SudoMsg) -> Result<Response, ContractError> {
pub fn sudo(deps: DepsMut<'_>, _env: Env, msg: SudoMsg) -> Result<Response, ContractError> {
match msg {
SudoMsg::RemoveTimeAlarm { receiver: _ } => {
// TimeAlarms::remove(deps.storage, receiver)?;
SudoMsg::RemoveTimeAlarm { receiver } => {
TimeAlarms::new().remove(deps.storage, receiver)?;
Ok(Response::default())
}
}
Expand Down

0 comments on commit a9fda35

Please sign in to comment.