Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(smart-contracts): disable-entrypoint-for-remove-swap-routes-in-… #277

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ fn add_swap_routes(
.add_attributes(attributes))
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn remove_swap_routes(
fn remove_swap_routes(
deps: DepsMut,
env: Env,
sender: Addr,
Expand All @@ -275,8 +274,8 @@ pub fn remove_swap_routes(

for swap_route in swap_routes {
let swap_route_key = get_key_from_swap_route(deps.as_ref(), &swap_route)?;
// Remove the swap route if it exists

// Remove the swap route if it exists
if swap_route_key.has(deps.storage) {
swap_route_key.remove(deps.storage);
attributes.push(attr("swap_route", swap_route.clone().to_string()));
Expand Down
Loading