Skip to content

Commit

Permalink
fix: call update admin (#751)
Browse files Browse the repository at this point in the history
* fix: call-update-admin

* chore: pass build
  • Loading branch information
ibrizsabin authored Sep 27, 2023
1 parent b0f9956 commit 6f00fb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/cosmwasm-vm/cw-xcall-ibc-connection/src/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl<'a> CwIbcConnection<'a> {
/// a `Result<Response, ContractError>`. If the `admin` parameter is empty, it returns an `Err` with
/// the `ContractError::AdminAddressCannotBeNull` variant. If the `info.sender` is not the owner, it
/// returns an `Err` with the `ContractError::Unauthorized` variant. If an admin already exists, it
/// returns an `Err` with
/// returns an `Err`
pub fn add_admin(
&self,
store: &mut dyn Storage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl<'a> CwIbcConnection<'a> {
ExecuteMsg::SetAdmin { address } => {
let validated_address =
CwIbcConnection::validate_address(deps.api, address.as_str())?;
self.add_admin(deps.storage, info, validated_address.to_string())
self.update_admin(deps.storage, info, validated_address.to_string())
}
ExecuteMsg::SendMessage { to, sn, msg } => {
println!("{LOG_PREFIX} Received Payload From XCall App");
Expand Down

0 comments on commit 6f00fb7

Please sign in to comment.