@everymatrix/lottery-program-wof 1.86.3 → 1.86.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8058,16 +8058,16 @@ class sl {
8058
8058
  const { data: o, message: s, index: a } = await this.fetcher(this.guid, r);
8059
8059
  if (this.drawnIndex = a, i = !0, !o.success)
8060
8060
  throw new Error("data.success is false");
8061
- const l = o.item.state, c = o.item?.result?.outcomes?.some((f) => f.completed === !1);
8061
+ const l = o.item.state, c = o.item?.result?.outcomes?.some((h) => h.completed === !1), u = o.item?.result?.outcomes?.some((h) => h.action?.type === "noprize");
8062
8062
  if (r === Ne.Assign && l !== "fulfilled" || r === Ne.Reject && l !== "fulfilled" || r === Ne.Reward && l !== "drawn" && l !== "fulfilled" || l !== "fulfilled" && c)
8063
8063
  throw new Error("Draw Failed");
8064
8064
  if (this.isDrawn = !0, n)
8065
8065
  return;
8066
- if (r === Ne.Reward) {
8067
- const f = this.guid, h = () => {
8068
- this.drawer(f, Ne.Assign);
8066
+ if (r === Ne.Reward && !u) {
8067
+ const h = this.guid, d = () => {
8068
+ this.drawer(h, Ne.Assign);
8069
8069
  };
8070
- this.handleHaltProcess(this.drawnIndex, void 0, h);
8070
+ this.handleHaltProcess(this.drawnIndex, void 0, d);
8071
8071
  } else
8072
8072
  this.handleHaltProcess(this.drawnIndex, s, this.afterSuccess);
8073
8073
  this.drawInit();