Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
orionstardust committed Sep 10, 2024
1 parent 3b14b5c commit ba1bb09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mappings/diamond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1938,10 +1938,10 @@ export function handleERC1155BuyOrderExecute(
entity.priceInWei = event.params.priceInWei;
entity.executedQuantity = entity.executedQuantity.plus(event.params.quantity);
entity.quantity = entity.quantity.minus(event.params.quantity);
entity.completedAt = event.params.time;
entity.lastExecutedAt = event.params.time;
entity.seller = event.params.seller;
if (entity.quantity == BIGINT_ZERO) {
entity.quantity = event.params.time;
entity.completedAt = event.params.time;
}
entity.save();
}
Expand Down

0 comments on commit ba1bb09

Please sign in to comment.