Closed EzePze closed 4 weeks ago
Thanks for the bug report @EzePze, I opened a PR with the fix here https://github.com/input-output-hk/cardano-js-sdk/pull/1319, should be fixed in the next version of the SDK
@EzePze we just published version 0.33.0 of the @cardano-sdk/core package which should have this fixed, give it a try and let us know
It seems that the issue was not properly fixed, see https://github.com/input-output-hk/cardano-js-sdk/pull/1319#issuecomment-2151584168 . Is being addressed in this PR https://github.com/input-output-hk/cardano-js-sdk/pull/1322
You can try the latest release 0.33.1, that should have this fixed :)
Summary
When constructing an empty
PlutusList
, callingtoCbor
serialises it with indefinite encoding, which is not canonical and can cause problems with scripts, particularly theserialise
builtin.Steps to reproduce the bug
Actual Result
Which is the encoding for an indefinite list
Expected Result
Which is the encoding for a definite list
SDK version
0.30.2
Environment type
Environment details
No response