@medialane/sdk 0.7.5 → 0.8.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.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2404,6 +2404,7 @@ function build1155FulfillmentTypedData(message, chainId) {
|
|
|
2404
2404
|
OrderFulfillment: [
|
|
2405
2405
|
{ name: "order_hash", type: "felt" },
|
|
2406
2406
|
{ name: "fulfiller", type: "ContractAddress" },
|
|
2407
|
+
{ name: "quantity", type: "felt" },
|
|
2407
2408
|
{ name: "nonce", type: "felt" }
|
|
2408
2409
|
]
|
|
2409
2410
|
},
|
|
@@ -2532,7 +2533,7 @@ async function createListing1155(account, params, config) {
|
|
|
2532
2533
|
}
|
|
2533
2534
|
}
|
|
2534
2535
|
async function fulfillOrder1155(account, params, config) {
|
|
2535
|
-
const { orderHash, paymentToken, totalPrice } = params;
|
|
2536
|
+
const { orderHash, paymentToken, totalPrice, quantity = "1" } = params;
|
|
2536
2537
|
const contract = getContract(config);
|
|
2537
2538
|
const provider = getProvider2(config);
|
|
2538
2539
|
const chainId = getChainId2();
|
|
@@ -2540,6 +2541,7 @@ async function fulfillOrder1155(account, params, config) {
|
|
|
2540
2541
|
const fulfillmentParams = {
|
|
2541
2542
|
order_hash: orderHash,
|
|
2542
2543
|
fulfiller: account.address,
|
|
2544
|
+
quantity,
|
|
2543
2545
|
nonce: currentNonce.toString()
|
|
2544
2546
|
};
|
|
2545
2547
|
const typedData = stringifyBigInts(
|