@medialane/sdk 0.55.0 → 0.56.0

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.
@@ -10901,18 +10901,20 @@ var StarknetVenue = class {
10901
10901
  }
10902
10902
  async fulfillOrder(signer, orderRef, opts) {
10903
10903
  const o = await this.deps.resolveOrder(orderRef);
10904
+ const quantity = opts?.quantity ?? "1";
10905
+ const totalPrice = (BigInt(o.unitPrice) * BigInt(quantity)).toString();
10904
10906
  if (o.standard === "ERC1155") {
10905
10907
  return this.m1155.fulfillOrder(signer, {
10906
10908
  orderHash: orderRef,
10907
10909
  paymentToken: o.paymentToken,
10908
- totalPrice: o.totalPrice,
10909
- quantity: opts?.quantity ?? "1"
10910
+ totalPrice,
10911
+ quantity
10910
10912
  });
10911
10913
  }
10912
10914
  return this.m721.fulfillOrder(signer, {
10913
10915
  orderHash: orderRef,
10914
10916
  paymentToken: o.paymentToken,
10915
- totalPrice: o.totalPrice
10917
+ totalPrice
10916
10918
  });
10917
10919
  }
10918
10920
  async cancelOrder(signer, orderRef) {