Skip to content

Commit

Permalink
refactors how we save the auction during pause and unpause
Browse files Browse the repository at this point in the history
  • Loading branch information
gangov committed Sep 11, 2024
1 parent eb91785 commit f171bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/auctions/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ impl MarketplaceContract {

auction.status = AuctionStatus::Paused;

save_auction_by_id(&env, auction_id, &auction)?;
save_auction(&env, &auction)?;

env.events().publish(("pause", "auction id: "), auction_id);

Expand Down Expand Up @@ -354,7 +354,7 @@ impl MarketplaceContract {

auction.status = AuctionStatus::Active;

save_auction_by_id(env, auction_id, &auction)?;
save_auction(env, &auction)?;

env.events()
.publish(("unpause", "auction id: "), auction_id);
Expand Down

0 comments on commit f171bce

Please sign in to comment.