Skip to content

Commit

Permalink
Merge pull request #638 from CosmWasm/637-fix-remove_hook
Browse files Browse the repository at this point in the history
Fix `remove_hook` helper
  • Loading branch information
maurolacy authored Jan 28, 2022
2 parents 7192e3e + b84dc61 commit 147ad3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cw4/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl Cw4Contract {
}

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

Expand Down

0 comments on commit 147ad3c

Please sign in to comment.