Skip to content

Commit

Permalink
Remove sudo msg
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Dec 5, 2023
1 parent 0b34f64 commit becce01
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dca92b704c751e44abc3fdb20163864a77f24a278965788725e372fd29e469c9 clock_example.wasm
24ca4ccc60465620274338f5afc70eea7cf0e0823292cce9b269911babc61c84 clock_example.wasm
2 changes: 1 addition & 1 deletion artifacts/checksums_intermediate.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13effbc2cd160c53c00d845a767e4feb6ffbe572ad301820dd5c599e043e3590 ./target/wasm32-unknown-unknown/release/clock_example.wasm
d11adace323cabbc3b66e42e692772c877e6f449eb7b13784f9b0032c857262f ./target/wasm32-unknown-unknown/release/clock_example.wasm
Binary file modified artifacts/clock_example.wasm
Binary file not shown.
13 changes: 1 addition & 12 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use cosmwasm_std::{to_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response,
use cw2::set_contract_version;

use crate::error::ContractError;
use crate::msg::{ExecuteMsg, InstantiateMsg, QueryMsg, SudoMsg};
use crate::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};
use crate::state::{Config, CONFIG};

const CONTRACT_NAME: &str = "crates.io:cw-ibc-example";
Expand Down Expand Up @@ -46,17 +46,6 @@ pub fn execute(
}
}

// sudo msg
#[cfg_attr(not(feature = "library"), entry_point)]
pub fn sudo(deps: DepsMut, _env: Env, msg: SudoMsg) -> Result<Response, ContractError> {
match msg {
SudoMsg::ClockEndBlock {} => {
increment(deps)?;
Ok(Response::new())
}
}
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
match msg {
Expand Down

0 comments on commit becce01

Please sign in to comment.