Skip to content

Commit

Permalink
bump-coretime-utils (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo authored Apr 3, 2024
1 parent d4fe721 commit 892109e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -63,4 +63,4 @@
"typescript": "^4.7.4",
"webpack": "^5.81.0"
}
}
}
2 changes: 1 addition & 1 deletion src/components/Modals/Interlace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/regions/native/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/utils/native/init.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 892109e

Please sign in to comment.