From d98b4ffdd38efa0360692f6f4602eb1f2be14988 Mon Sep 17 00:00:00 2001 From: Sergej Date: Wed, 3 Apr 2024 15:03:21 +0200 Subject: [PATCH] bump-coretime-utils --- package.json | 4 ++-- src/components/Modals/Interlace/index.tsx | 2 +- src/contexts/regions/native/index.ts | 2 +- src/utils/native/init.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ef0f1db7..fbedae38 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@scio-labs/use-inkathon": "^0.0.1-alpha.44", "@types/humanize-duration": "^3.27.3", "clsx": "^1.1.1", - "coretime-utils": "^0.2.6", + "coretime-utils": "^0.2.8", "date-fns": "^3.3.1", "decimal.js": "^10.4.3", "humanize-duration": "^3.31.0", @@ -63,4 +63,4 @@ "typescript": "^4.7.4", "webpack": "^5.81.0" } -} +} \ No newline at end of file diff --git a/src/components/Modals/Interlace/index.tsx b/src/components/Modals/Interlace/index.tsx index ee2e2fbc..e05a75e7 100644 --- a/src/components/Modals/Interlace/index.tsx +++ b/src/components/Modals/Interlace/index.tsx @@ -59,7 +59,7 @@ export const InterlaceModal = ({ const onInterlace = async () => { if (!api || !activeAccount || !activeSigner) return; - const mask = CoreMask.fromBin(newMask).getMask(); + const mask = CoreMask.fromBin(newMask).toRawHex(); const txInterlace = api.tx.broker.interlace( regionMetadata.region.getOnChainRegionId(), diff --git a/src/contexts/regions/native/index.ts b/src/contexts/regions/native/index.ts index f0fbf7b2..279e74d9 100644 --- a/src/contexts/regions/native/index.ts +++ b/src/contexts/regions/native/index.ts @@ -54,7 +54,7 @@ export const fetchRegion = async ( await coretimeApi.query.broker.regions({ begin: regionId.begin, core: regionId.core, - mask: regionId.mask.getMask(), + mask: regionId.mask.toRawHex(), }) ).toHuman(); diff --git a/src/utils/native/init.tsx b/src/utils/native/init.tsx index 2d8ef82e..9f4a0637 100644 --- a/src/utils/native/init.tsx +++ b/src/utils/native/init.tsx @@ -20,7 +20,7 @@ export async function initRegionMetadata( begin: region.getBegin(), end: region.getEnd(), core: region.getCore(), - mask: region.getMask().getMask(), + mask: region.getMask().toRawHex(), }; await contractTx(