@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.
- package/dist/{index-Dq4AXt2m.d.ts → index-BcO6oh6E.d.ts} +3 -2
- package/dist/{index-uBEA-1JF.d.cts → index-CcXuxRd-.d.cts} +3 -2
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +5 -3
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +1 -1
- package/dist/starknet/index.d.ts +1 -1
- package/dist/starknet/index.js +5 -3
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/dist/starknet/index.cjs
CHANGED
|
@@ -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
|
|
10909
|
-
quantity
|
|
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
|
|
10917
|
+
totalPrice
|
|
10916
10918
|
});
|
|
10917
10919
|
}
|
|
10918
10920
|
async cancelOrder(signer, orderRef) {
|