Skip to content

Commit

Permalink
Merge pull request #10 from ComposableFi/dz/6
Browse files Browse the repository at this point in the history
oh:
  • Loading branch information
dzmitry-lahoda authored Nov 22, 2023
2 parents 0f6b9ae + 0ca63c8 commit 89ec63b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/cosmwasm/order/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ impl OrderContract<'_> {
solution_item.block_added,
)?;

self.solutions.clear(ctx.deps.storage);
let solution_chosen = Event::new("mantis-solution-chosen")
.add_attribute("token_a", ab.clone().0)
.add_attribute("token_b", ab.clone().1)
Expand All @@ -364,8 +365,7 @@ impl OrderContract<'_> {
}
Ok(response
.add_event(solution_upserted)
.add_event(solution_chosen)
.add_messages(transfers))
.add_event(solution_chosen))
}

fn merge_solution_with_orders(
Expand Down

0 comments on commit 89ec63b

Please sign in to comment.