Skip to content

Commit

Permalink
Add Migrator Contract
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Dec 5, 2023
1 parent 0b34f64 commit 6472e58
Show file tree
Hide file tree
Showing 4 changed files with 7 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 @@
dca92b704c751e44abc3fdb20163864a77f24a278965788725e372fd29e469c9 clock_example.wasm
dad69bde1a86b22899167bf0ed900eec1485b71e25cecd2aeb8d5d4175258f90 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
1f76171df46b8cf4c5af6fc097711e9c884d8056007e286383d19ce1dfebff3b ./target/wasm32-unknown-unknown/release/clock_example.wasm
Binary file modified artifacts/clock_example.wasm
Binary file not shown.
5 changes: 5 additions & 0 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ pub fn instantiate(
Ok(Response::new().add_attribute("method", "instantiate"))
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn migrate(_deps: DepsMut, _env: Env, _msg: InstantiateMsg) -> Result<Response, ContractError> {
Ok(Response::default())
}

fn increment(deps: DepsMut) -> Result<(), ContractError> {
let mut config = CONFIG.load(deps.storage)?;
config.val += 1;
Expand Down

0 comments on commit 6472e58

Please sign in to comment.