File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/core/test/Serialization Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11import { Cardano , Serialization } from '../../src' ;
2+ import { HexBlob } from '@cardano-sdk/util' ;
23
34describe ( '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} ) ;
You can’t perform that action at this time.
0 commit comments