Created
October 27, 2021 17:24
-
-
Save ethanfrey/86f24f4fa1cf44cff150e1dfa1e4e54b to your computer and use it in GitHub Desktop.
Parse Instantiation Address on Reply
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use cw0::parse_reply_instantiate_data; | |
pub fn reply(deps: DepsMut, _env: Env, msg: Reply) -> Result<Response, ContractError> { | |
let res = parse_reply_instantiate_data(msg)?; | |
let child_contract = deps.api.addr_validate(res.contract_address)?; | |
// store this where it belongs... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment