aeternity / aesophia

Stand alone compiler for the Sophia smart contract language
https://docs.aeternity.com/aesophia
ISC License
52 stars 19 forks source link

docs: error in example for `AENS.update` #458

Closed marc0olo closed 1 year ago

marc0olo commented 1 year ago

just playing around with the AENS namespace and its operations. the AENS.update example seems to be wrong as the pointers are also optional according to compiler, see https://github.com/aeternity/aesophia/blob/master/docs/sophia_stdlib.md#update

current example

AENS.update(owner : address, name : string, expiry : option(Chain.ttl), client_ttl : option(int),
            new_ptrs : map(string, AENS.pointee), <signature : signature>) : unit

expected example

AENS.update(owner : address, name : string, expiry : option(Chain.ttl), client_ttl : option(int),
            new_ptrs : option(map(string, AENS.pointee)), <signature : signature>) : unit