commit before mapping change

This commit is contained in:
mx
2023-01-06 17:46:36 +01:00
parent 062f1c28f4
commit 8b7ec0756e
@@ -40,10 +40,7 @@ pub fn execute(
match msg {
Announce { client_address, whitelist, owner } => exec::announce(_deps, _info, client_address, whitelist, owner ),
Delete { } => exec::delete(_deps, _info),
/* TODO
* UpdateScore()
* Edit { client_address, whitelist, owner } => exec::edit(_deps, _info, client_address, whitelist, owner),
*/
// UpdateScore { } => exec::update_score(_deps, _info, ) // TODO once changed mapping from info.sender to client address ¬
}
}
@@ -73,6 +70,7 @@ mod exec {
}
// delete currently just removes the service mapped to the address of the contract caller - this is assuming a one-service per address model like mix nodes
// TODO change this to a one acct -> many services model
pub fn delete(
deps: DepsMut,
info: MessageInfo,