Skip to content

Commit 757ffc2

Browse files
committed
test(e2e): fix cip25 v2 test
it was setting version as part of the map under <asset_name> but the spec specifies that it has to be under the '721' map
1 parent f9d460a commit 757ffc2

File tree

1 file changed

+4
-7
lines changed
  • packages/e2e/test/wallet_epoch_0/PersonalWallet

1 file changed

+4
-7
lines changed

packages/e2e/test/wallet_epoch_0/PersonalWallet/nft.test.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ describe('PersonalWallet.assets/nft', () => {
281281
const assetId = Cardano.AssetId(`${policyId}${assetNameHex}`);
282282
const tokens = new Map([[assetId, 1n]]);
283283

284-
const txDataMetadatum = new Map([
284+
const txDataMetadatum = new Map<Cardano.Metadatum, Cardano.Metadatum>([
285285
[
286286
version === 1 ? policyId : Buffer.from(policyId, 'hex'),
287287
new Map([
@@ -294,7 +294,8 @@ describe('PersonalWallet.assets/nft', () => {
294294
})
295295
]
296296
])
297-
]
297+
],
298+
['version', BigInt(version)]
298299
]);
299300

300301
const auxiliaryData = { blob: new Map([[721n, txDataMetadatum]]) };
@@ -342,10 +343,6 @@ describe('PersonalWallet.assets/nft', () => {
342343

343344
CIP0025Test('supports CIP-25 v1, assetName hex encoded', 'CIP-0025-v1-hex', 1, 'hex');
344345
CIP0025Test('supports CIP-25 v1, assetName utf8 encoded', 'CIP-0025-v1-utf8', 1, 'utf8');
345-
346-
// https://input-output-rnd.slack.com/archives/C06J663L2A2/p1731505470694659
347-
env.TEST_CLIENT_ASSET_PROVIDER !== 'blockfrost'
348-
? CIP0025Test('supports CIP-25 v2', 'CIP-0025-v2', 2)
349-
: test.todo('"supports CIP-25 v2" test is disabled when running with Blockfrost asset provider');
346+
CIP0025Test('supports CIP-25 v2', 'CIP-0025-v2', 2);
350347
});
351348
});

0 commit comments

Comments
 (0)