Skip to content

Commit

Permalink
feat: use test vesca
Browse files Browse the repository at this point in the history
  • Loading branch information
fum-is-chum committed Mar 25, 2024
1 parent 893e848 commit d700b3c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/queries/vescaQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export const getVescaKeys = async (
ownerAddress?: string
) => {
const owner = ownerAddress || query.suiKit.currentAddress();
const veScaPkgId = query.address.get('vesca.id');
// const veScaPkgId = query.address.get('vesca.id');
const veScaPkgId =
'0xb220d034bdf335d77ae5bfbf6daf059c2cc7a1f719b12bfed75d1736fac038c8';
const veScaKeyType = `${veScaPkgId}::ve_sca::VeScaKey`;
const keyObjectsResponse: SuiObjectResponse[] = [];
let hasNextPage = false;
Expand Down Expand Up @@ -57,7 +59,6 @@ export const getVescaKeys = async (
*/
export const getVeScas = async (query: ScallopQuery, ownerAddress?: string) => {
const keyObjectDatas = await getVescaKeys(query, ownerAddress);

const keyObjectId: string[] = keyObjectDatas.map((data) => data.objectId);

const veScas: Vesca[] = [];
Expand All @@ -82,7 +83,9 @@ export const getVeSca = async (
veScaKeyId?: string,
ownerAddress?: string
) => {
const tableId = query.address.get('vesca.tableId');
// const tableId = query.address.get('vesca.tableId');
const tableId =
'0xc607241e4a679fe376d1170b2fbe07b64917bfe69100d4825241cda20039d4bd';
veScaKeyId =
veScaKeyId || (await getVescaKeys(query, ownerAddress))[0].objectId;

Expand Down

0 comments on commit d700b3c

Please sign in to comment.