Skip to content

Commit

Permalink
chore: rename contract error from its to chain config
Browse files Browse the repository at this point in the history
  • Loading branch information
maancham committed Jan 30, 2025
1 parent 93333ef commit ec2c7b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/interchain-token-service/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ pub enum Error {
DisableExecution,
#[error("failed to enable execution")]
EnableExecution,
#[error("failed to query its address")]
QueryItsContract,
#[error("failed to query chain config")]
QueryChainConfig,
#[error("failed to query all its addresses")]
QueryAllItsContracts,
#[error("failed to query a specific token instance")]
Expand Down Expand Up @@ -130,7 +130,7 @@ fn match_gateway(storage: &dyn Storage, _: &ExecuteMsg) -> Result<Addr, Report<E
pub fn query(deps: Deps, _: Env, msg: QueryMsg) -> Result<Binary, ContractError> {
match msg {
QueryMsg::ChainConfig { chain } => {
query::chain_config(deps, chain).change_context(Error::QueryItsContract)
query::chain_config(deps, chain).change_context(Error::QueryChainConfig)
}
QueryMsg::AllItsContracts => {
query::all_its_contracts(deps).change_context(Error::QueryAllItsContracts)
Expand Down

0 comments on commit ec2c7b4

Please sign in to comment.