Skip to content

Commit 47269ca

Browse files
committed
fix(wasm-sdk): add maxLength to indexed rarity field in test fixture
The validation feature added to rs-sdk's dpp dependency now enforces that indexed string properties must have maxLength <= 63. The rarity field in the crypto card game test fixture was missing this constraint, causing all DataContract tests to fail.
1 parent 51fc348 commit 47269ca

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/wasm-sdk/tests/unit/fixtures/data-contract-v0-crypto-card-game.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const contract = {
5252
rarity: {
5353
type: 'string',
5454
description: 'Rarity level of the card',
55+
maxLength: 9,
5556
enum: [
5657
'common',
5758
'uncommon',

0 commit comments

Comments
 (0)