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

.bytes() method for "Opaque ByteArray" in the contract language #117

Open
papag00se opened this issue Dec 6, 2023 · 1 comment
Open

Comments

@papag00se
Copy link
Contributor

papag00se commented Dec 6, 2023

On the Helios Lang side of the house - I am wondering if we can get a .bytes() on the "Opaque ByteArray" objects like MintingPolicyHash, DatumHash, etc. to make it easier to compare to a known ByteArray. Right now, the .serialize() functions wraps it in a CBOR tag.

.bytes(), .bytearray(), or .to_bytearray() all seem appropriate.

@christianschmitz
Copy link
Contributor

christianschmitz commented Jan 27, 2024

I've added a .bytes getter to DatumHash, MintingPolicyHash, PubKeyHash, ScriptHash, StakingValidatorHash, ValidatorHash and TxId.

This is now available in 0.16.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

No branches or pull requests

2 participants