Skip to content

Commit a9233d7

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

File tree

1 file changed

+2
-1
lines changed
  • packages/cli/package/src/lib/chain/offer

1 file changed

+2
-1
lines changed

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)