@scallop-io/sui-scallop-sdk 0.44.21 → 0.44.22
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 +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/builders/borrowIncentiveBuilder.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -4902,7 +4902,7 @@ var requireObligationInfo2 = async (...params) => {
|
|
|
4902
4902
|
};
|
|
4903
4903
|
};
|
|
4904
4904
|
var getBindedObligationId = async (builder, veScaKey) => {
|
|
4905
|
-
const
|
|
4905
|
+
const borrowIncentiveObjectId = builder.address.get("borrowIncentive.object");
|
|
4906
4906
|
const incentivePoolsId = builder.address.get(
|
|
4907
4907
|
"borrowIncentive.incentivePools"
|
|
4908
4908
|
);
|
|
@@ -4918,7 +4918,7 @@ var getBindedObligationId = async (builder, veScaKey) => {
|
|
|
4918
4918
|
return false;
|
|
4919
4919
|
const incentivePoolFields = incentivePoolsResponse.data.content.fields;
|
|
4920
4920
|
const veScaBindTableId = incentivePoolFields.ve_sca_bind.fields.id.id;
|
|
4921
|
-
const keyType = `${
|
|
4921
|
+
const keyType = `${borrowIncentiveObjectId}::typed_id::TypedID<${veScaPkgId}::ve_sca::VeScaKey>`;
|
|
4922
4922
|
const veScaBindTableResponse = await client.getDynamicFieldObject({
|
|
4923
4923
|
parentId: veScaBindTableId,
|
|
4924
4924
|
name: {
|