Skip to content

Commit

Permalink
fix: fix the typo of response field "recovery_addr" in cross chain sw…
Browse files Browse the repository at this point in the history
…ap (osmosis-labs#6841)

* fix: fix the typo of response field "recovery_addr"

* fix: fix typo of "Swaps"

* fix: fix the typo of "denom"

* Update CHANGELOG.md

* build: update crosschain_swaps.wasm

* build: update outpost.wasm
  • Loading branch information
Halimao authored Nov 9, 2023
1 parent c387e00 commit 30b8e82
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* [#6840](https://github.com/osmosis-labs/osmosis/pull/6840) fix: change TypeMsgUnbondConvertAndStake value to "unbond_convert_and_stake" and improve error message when epoch currentEpochStartHeight less than zero
* [#6769](https://github.com/osmosis-labs/osmosis/pull/6769) fix: improve dust handling in EstimateTradeBasedOnPriceImpact
* [#6841](https://github.com/osmosis-labs/osmosis/pull/6841) fix: fix receive_ack response field and imporove error message of InvalidCrosschainSwapsContract and NoDenomTrace

## v20.0.0

Expand Down
2 changes: 1 addition & 1 deletion cosmwasm/contracts/crosschain-swaps/src/ibc_lifecycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub fn receive_ack(

Ok(response
.add_attribute("msg", "recovery stored")
.add_attribute("reecovery_addr", recovery_addr))
.add_attribute("recovery_addr", recovery_addr))
}

// This is very similar to the handling of acks, but it always creates a
Expand Down
2 changes: 1 addition & 1 deletion cosmwasm/contracts/outpost/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub enum ContractError {
#[error("SwapAmountTooHigh: got {received}, max allowed: {max}")]
SwapAmountTooHigh { received: u128, max: u128 },

#[error("Invalid Crosschain Swpas Contract: {contract}")]
#[error("Invalid Crosschain Swaps Contract: {contract}")]
InvalidCrosschainSwapsContract { contract: String },

#[error("Custom Error val: {val:?}")]
Expand Down
2 changes: 1 addition & 1 deletion cosmwasm/packages/registry/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub enum RegistryError {
#[error("denom {denom:?} is not an IBC denom")]
InvalidIBCDenom { denom: String },

#[error("No deom trace found for: {denom:?}")]
#[error("No denom trace found for: {denom:?}")]
NoDenomTrace { denom: String },

#[error("Invalid denom trace: {error}")]
Expand Down
Binary file modified tests/ibc-hooks/bytecode/crosschain_swaps.wasm
Binary file not shown.
Binary file modified tests/ibc-hooks/bytecode/outpost.wasm
Binary file not shown.

0 comments on commit 30b8e82

Please sign in to comment.