Skip to content

Commit

Permalink
Merge pull request #160 from input-output-hk/fix/cip2-property-quanti…
Browse files Browse the repository at this point in the history
…ties

fix(cip2): property tests generate quantities >0
  • Loading branch information
mkazlauskas committed Jan 13, 2022
2 parents 7b44935 + 3988ca0 commit a1d555b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cip2/test/util/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ export const generateSelectionParams = (() => {
fc
.set(fc.oneof(...AssetId.All.map((asset) => fc.constant(asset))))
.chain((assets) =>
fc.tuple(...assets.map((asset) => fc.bigUint(cslUtil.MAX_U64).map((amount) => ({ amount, asset }))))
fc.tuple(...assets.map((asset) => fc.bigInt(1n, cslUtil.MAX_U64).map((amount) => ({ amount, asset }))))
)
.map(
(assets) =>
new Map<Cardano.AssetId, Cardano.Lovelace>(assets.map(({ amount, asset }) => [asset, amount]))
),
fc.constant(void 0)
),
coins: fc.bigUint(cslUtil.MAX_U64 - implicitCoin)
coins: fc.bigInt(1n, cslUtil.MAX_U64 - implicitCoin)
}),
{ maxLength: 11 }
)
Expand Down

0 comments on commit a1d555b

Please sign in to comment.