Skip to content

Commit

Permalink
Merge pull request #53 from confio/fix/remove_hook
Browse files Browse the repository at this point in the history
Fix `remove_hook` helper
  • Loading branch information
maurolacy committed Jan 28, 2022
2 parents f0ded3e + 85e57e0 commit b8373cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tg4/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Tg4Contract {
}

pub fn remove_hook<T: Into<String>>(&self, addr: T) -> StdResult<SubMsg> {
let msg = Tg4ExecuteMsg::AddHook { addr: addr.into() };
let msg = Tg4ExecuteMsg::RemoveHook { addr: addr.into() };
self.encode_msg(msg)
}

Expand Down Expand Up @@ -199,7 +199,7 @@ impl Tg4Contract {
Ok(res.members)
}

/// This will make some queires to ensure that the target contract is tg4-compatible.
/// This will make some queries to ensure that the target contract is tg4-compatible.
/// It returns `true` iff it appears to be compatible.
pub fn is_tg4(&self, querier: &QuerierWrapper) -> bool {
self.list_members(querier, None, Some(1)).is_ok()
Expand Down

0 comments on commit b8373cd

Please sign in to comment.