Skip to content

Commit

Permalink
build wasm for test zapper & change name function
Browse files Browse the repository at this point in the history
  • Loading branch information
vuonghuuhung committed Oct 1, 2024
1 parent 1e7e13a commit 7eb2670
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/zapper/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub fn execute(
minimum_liquidity,
),
ExecuteMsg::ZapInAfterSwapOperation {} => internal::zap_in_liquidity(deps, env, info),
ExecuteMsg::RefundAfterZapInLiquidity {} => internal::add_liquidity(deps, env, info),
ExecuteMsg::RefundAfterZapInLiquidity {} => internal::refund_after_zap_in(deps, env, info),
ExecuteMsg::ZapOutLiquidity {
position_index,
routes,
Expand Down
2 changes: 1 addition & 1 deletion contracts/zapper/src/entrypoints/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ pub fn zap_in_liquidity(deps: DepsMut, env: Env, info: MessageInfo) -> Result<Re
Ok(Response::new().add_messages(msgs))
}

pub fn add_liquidity(deps: DepsMut, env: Env, info: MessageInfo) -> Result<Response, ContractError> {
pub fn refund_after_zap_in(deps: DepsMut, env: Env, info: MessageInfo) -> Result<Response, ContractError> {
if info.sender != env.contract.address {
return Err(ContractError::Unauthorized {});
}
Expand Down
Binary file modified contracts/zapper/src/tests/testdata/zapper.wasm
Binary file not shown.

0 comments on commit 7eb2670

Please sign in to comment.