[Ceres]: Raw pointers as bytes (#493)

* DataPt should contain bytes() now that we have it

* Fix missing negation in docs
This commit is contained in:
Hans Svensson
2023-12-15 13:27:12 +01:00
parent 78b758c337
commit 745eeda858
5 changed files with 22 additions and 18 deletions
+2 -2
View File
@@ -142,7 +142,7 @@ datatype name = Name(address, Chain.ttl, map(string, AENSv2.pointee))
```
datatype pointee = AccountPt(address) | OraclePt(address)
| ContractPt(address) | ChannelPt(address) | DataPt(string)
| ContractPt(address) | ChannelPt(address) | DataPt(bytes())
```
Note: on-chain there is a maximum length enforced for `DataPt`, it is 1024 bytes.
@@ -425,7 +425,7 @@ Bytes.to_fixed_size(a : bytes()) : option(bytes(n))
```
Converts an arbitrary size byte array to a fix size byte array. If `a` is
`n` bytes, `None` is returned.
not `n` bytes, `None` is returned.
#### to\_any\_size
```