Skip to content

Commit

Permalink
bug fix: set nft as ready when updating the address
Browse files Browse the repository at this point in the history
  • Loading branch information
larry0x committed Sep 19, 2022
1 parent 991edc5 commit ddc27a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/hub/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ pub fn set_nft(deps: DepsMut, sender_addr: Addr, nft: &str) -> Result<Response,
NFT.save(deps.storage, &nft_addr)?;

Ok(Response::new()
.add_message(WasmMsg::Execute {
contract_addr: nft_addr.into(),
msg: to_binary(&badges::nft::ExecuteMsg::_Ready {})?,
funds: vec![],
})
.add_attribute("action", "badges/hub/set_nft")
.add_attribute("nft", nft))
}
Expand Down

0 comments on commit ddc27a5

Please sign in to comment.