Skip to content

Commit

Permalink
Add almost unique identifiers from pycardano 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron authored Feb 8, 2024
1 parent 9f764a5 commit 0caebd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language_tour/classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ c = Animal(b"jackie", a)

> Importantly, you need to set the `CONSTR_ID` of Classes that occur in a Union to distinct values.
> On-Chain, classes are only distinguished by their `CONSTR_ID` value.
> If omitted, the `CONSTR_ID` defaults to 0.
> If omitted, the `CONSTR_ID` defaults to [an almost-unique determinstic value based on the Class definition](https://github.com/cardano-foundation/CIPs/pull/608).
#### Type casts

Expand Down Expand Up @@ -126,4 +126,4 @@ This will return the `bytes` representing an object in CBOR.
```python
print(a.to_cbor().hex())
# prints "d8799f4542696c6c791907b2ff"
```
```

0 comments on commit 0caebd8

Please sign in to comment.