aiken-lang / aiken

A modern smart contract platform for Cardano
https://aiken-lang.org
Apache License 2.0
454 stars 84 forks source link

aiken blueprint apply truncates output #987

Closed Quantumplation closed 1 month ago

Quantumplation commented 1 month ago

What Git revision are you using?

aiken v1.0.28-alpha+c9a1519 (see https://github.com/aiken-lang/aikup/issues/8)

What operating system are you using, and which version?

Describe what the problem is?

$ aiken blueprint apply 48544553545f4e4654

    Analyzing blueprint
      Parsing inputs
     Applying 48544553545f4e465
         Done
      Summary 0 errors, 0 warnings

Notice the missing 4 in the output; this also happens when following the prompts without a parameter, which is how I originally discovered this.

What should be the expected behavior?

Print out the full hex of the parameter that is applied.

Quantumplation commented 1 month ago

Actually, it seems to be doing something more nefarious; if I provide a longer parameter, like ba0062b8f68bb8f80d4509e53d97a554381030b5e84832115376cb0a it gets encoded as

     Applying 581cba0062b8f68bb8f80d4509e53d97a554381030b5e84
              32115376cb0

which is missing both the a at the end, and the 8 before the 3 on the wrapped line