Closed sourabhxyz closed 10 months ago
That file does indeed appear to be corrupt. It contains a tag saying that a constant is coming up: the constant should be preceded by some type information, but that's missing. Your file has presumably been generated from Haskell using the PlutusTx compiler, and it's very difficult to work out what's going on without seeing the Haskell code. Could you show us the Haskell, or perhaps try to construct some smaller example that gives the same behaviour?
Thanks for your reply @kwxm! I was able to obtain deserialised UPLC from the shared contract.txt
file using the code mentioned here. However, when I tried to apply my argument, as mentioned here, I got a different script hash than what I had obtained if I had applied the argument to my initial CompiledCode
(i.e., without serialising it and then deserialising it elsewhere).
Since the deserialization is working, we can continue the discussion of the script hash issue in #5331.
Summary
I am using
loadFromFile
for the attached UPLC program and seeing the following error:UPLC program was generated using
-fplugin-opt PlutusTx.Plugin:dump-uplc
flag.Please find attached the
contract.txt
file. contract.txtSteps to reproduce the behavior
Already provided.
Actual Result
Already provided.
Expected Result
Should have correctly deserialised the serialised
CompiledCode
.Describe the approach you would take to fix this
No response
System info
OS: MacOS Version: Sonoma 14.1.2 Plutus library version: 1.6.0.0