Skip to content

Commit

Permalink
Handle callback messages from preproposal contracts (#638)
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel Lopez <glopez11193@gmail.com>
  • Loading branch information
JakeHartnell and ismellike committed Jan 31, 2023
1 parent 41bdd45 commit dbba976
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion contracts/proposal/dao-proposal-multiple/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,13 @@ pub fn reply(deps: DepsMut, _env: Env, msg: Reply) -> Result<Response, ContractE
&ProposalCreationPolicy::Module { addr: module },
)?;

Ok(Response::new().add_attribute("update_pre_propose_module", res.contract_address))
match res.data {
Some(data) => Ok(Response::new()
.add_attribute("update_pre_propose_module", res.contract_address)
.set_data(data)),
None => Ok(Response::new()
.add_attribute("update_pre_propose_module", res.contract_address)),
}
}
TaggedReplyId::FailedPreProposeModuleHook => {
let addr = match CREATION_POLICY.load(deps.storage)? {
Expand Down

0 comments on commit dbba976

Please sign in to comment.