Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference input scripts are in wrong format #252

Closed
nielstron opened this issue Jun 8, 2023 · 1 comment · Fixed by #253
Closed

Reference input scripts are in wrong format #252

nielstron opened this issue Jun 8, 2023 · 1 comment · Fixed by #253

Comments

@nielstron
Copy link
Contributor

Describe the bug
looking at the bytes of a utxo.output.script I see b'\x01\x00\x002222222222222222222222222222222222222...' while the real script looks like this b'Y,\x1e\x01\x00\x0022222222222222222222222222222222222...'

PlutusV2Script(cbor2.loads(x)) == utxo.output.script passes, but it should be utxo.output.script == x --> one wrapping of cbor is missing. This is painful for later, where the hashing of the script fails and produces the wrong policyId for token minting

@nielstron
Copy link
Contributor Author

nielstron commented Jun 8, 2023

I am using Ogmios, Kupo and Cardano node 1.35.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant