Skip to content

Commit f5628b7

Browse files
committed
test(core): add a failing test for PlutusData
1 parent b7805d4 commit f5628b7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/core/test/Serialization/PlutusData.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Cardano, Serialization } from '../../src';
2+
import { HexBlob } from '@cardano-sdk/util';
23

34
describe('PlutusData', () => {
45
it('round trip serializations produce the same core type output', () => {
@@ -8,4 +9,13 @@ describe('PlutusData', () => {
89
const fromCbor = Serialization.PlutusData.fromCbor(cbor);
910
expect(fromCbor.toCore()).toEqual(plutusData);
1011
});
12+
13+
it.skip('converts (TODO: describe is special about this that fails) inline datum', () => {
14+
// tx: https://preprod.cexplorer.io/tx/32d2b9062680c7ef5673114abce804d8b854f54440518e48a6db3e555f3a84d2
15+
// parsed datum: https://preprod.cexplorer.io/datum/f20e5a0a42a9015cd4e53f8b8c020e535957f782ea3231453fe4cf46a52d07c9
16+
const cbor = HexBlob(
17+
'd8799fa3446e616d6548537061636542756445696d6167654b697066733a2f2f7465737445696d616765583061723a2f2f66355738525a6d4151696d757a5f7679744659396f66497a6439517047614449763255587272616854753401ff'
18+
);
19+
expect(() => Serialization.PlutusData.fromCbor(cbor)).not.toThrowError();
20+
});
1121
});

0 commit comments

Comments
 (0)