@tradeport/sui-trading-sdk 0.0.3 → 0.0.5
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/CHANGELOG.md +12 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SuiTradingClient.ts +2 -1
- package/src/helpers/hasRoyaltyRule.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @tradeport/sui-trading-sdk
|
|
2
2
|
|
|
3
|
+
## 0.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0b85a3c: Fixed checking for royalty rule in placing collection bid
|
|
8
|
+
|
|
9
|
+
## 0.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a19eb42: Fixed accepting collection bids for leading 0 wallets
|
|
14
|
+
|
|
3
15
|
## 0.0.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -2757,7 +2757,7 @@ var getTradeportBiddingContractBidAmount = ({ bidAmount, collectionId }) => {
|
|
|
2757
2757
|
var hasRoyaltyRule = async (nftType) => {
|
|
2758
2758
|
const transferPolicies = await getKioskTransferPolicies(nftType);
|
|
2759
2759
|
return transferPolicies?.some(
|
|
2760
|
-
(policy) => policy?.rules?.filter((rule) => rule?.
|
|
2760
|
+
(policy) => policy?.rules?.filter((rule) => rule?.includes("royalty_rule"))?.length > 0
|
|
2761
2761
|
);
|
|
2762
2762
|
};
|
|
2763
2763
|
|
|
@@ -3691,7 +3691,7 @@ var SuiTradingClient = class {
|
|
|
3691
3691
|
nftId,
|
|
3692
3692
|
walletAddress
|
|
3693
3693
|
});
|
|
3694
|
-
txBlock.setSenderIfNotSet(walletAddress);
|
|
3694
|
+
txBlock.setSenderIfNotSet(addLeadingZerosAfter0x(walletAddress));
|
|
3695
3695
|
const rawTransaction = await txBlock.build({ client: suiClient_default });
|
|
3696
3696
|
await suiClient_default.dryRunTransactionBlock({
|
|
3697
3697
|
transactionBlock: rawTransaction
|