Skip to content

Commit

Permalink
Add sudo msg
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Dec 5, 2023
1 parent 4e6ded1 commit 0b34f64
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c840df15067463fafaf2dd62705123b504a75d95742abac7b82a0952cf3bbcda clock_example.wasm
dca92b704c751e44abc3fdb20163864a77f24a278965788725e372fd29e469c9 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 @@
5cb7affd19222bc6fcb10f667e84f5f8c925980ed265e2c6bd83a38d9e10f126 ./target/wasm32-unknown-unknown/release/clock_example.wasm
13effbc2cd160c53c00d845a767e4feb6ffbe572ad301820dd5c599e043e3590 ./target/wasm32-unknown-unknown/release/clock_example.wasm
Binary file modified artifacts/clock_example.wasm
Binary file not shown.
11 changes: 11 additions & 0 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ 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 0b34f64

Please sign in to comment.