@scallop-io/sui-scallop-sdk 0.44.26 → 0.44.27
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.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/types/builder/borrowIncentive.d.ts +2 -2
- package/package.json +1 -1
- package/src/builders/borrowIncentiveBuilder.ts +10 -3
- package/src/types/builder/borrowIncentive.ts +1 -2
package/dist/index.js
CHANGED
|
@@ -4927,10 +4927,13 @@ var requireObligationInfo2 = async (...params) => {
|
|
|
4927
4927
|
if (obligations.length === 0) {
|
|
4928
4928
|
throw new Error(`No obligation found for sender ${sender}`);
|
|
4929
4929
|
}
|
|
4930
|
+
const selectedObligation = obligations.find(
|
|
4931
|
+
(obligation) => obligation.id === obligationId || obligation.keyId === obligationKey
|
|
4932
|
+
) ?? obligations[0];
|
|
4930
4933
|
return {
|
|
4931
|
-
obligationId:
|
|
4932
|
-
obligationKey:
|
|
4933
|
-
obligationLocked:
|
|
4934
|
+
obligationId: selectedObligation.id,
|
|
4935
|
+
obligationKey: selectedObligation.keyId,
|
|
4936
|
+
obligationLocked: selectedObligation.locked
|
|
4934
4937
|
};
|
|
4935
4938
|
};
|
|
4936
4939
|
var getBindedObligationId = async (builder, veScaKey) => {
|