Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit a9233d7

Browse files
authored
fix: failing on resource max supply equal to 0 (#1109)
1 parent d4abe0e commit a9233d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/cli/package/src/lib/chain/offer

packages/cli/package/src/lib/chain/offer/offer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,8 @@ function indexerResourcesToOnchainResources(
13341334
.filter(({ resourceDescription: { type }, maxSupply }) => {
13351335
return (
13361336
onChainResourceTypeToResourceType(type) === resourceType &&
1337-
Number(maxSupply) > 0
1337+
// TODO: temporary solution to allow non-cpu resources to have maxSupply 0
1338+
(resourceType !== "cpu" || Number(maxSupply) > 0)
13381339
);
13391340
})
13401341
.map(

0 commit comments

Comments
 (0)