Skip to content

Commit 8390ec4

Browse files
author
Norman Meier
committed
chore: update doc
Signed-off-by: Norman Meier <norman@samourai.coop>
1 parent 165c1a6 commit 8390ec4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/how-to-guides/creating-dao.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ There is only one implementation currently, `gno.land/p/demo/teritori/dao_propos
8383
Proposals actions are encoded as objects implementing `gno.land/p/demo/teritori/dao_interfaces.ExecutableMessage`
8484
```go
8585
type ExecutableMessage interface {
86-
ujson.JSONAble
87-
ujson.FromJSONAble
86+
ToJSON() *json.Node
87+
FromJSON(ast *json.Node)
8888

8989
String() string
9090
Type() string
@@ -95,7 +95,7 @@ They are deserialized and executed by message handlers implementing `gno.land/p/
9595
```go
9696
type MessageHandler interface {
9797
Execute(message ExecutableMessage)
98-
MessageFromJSON(ast *json.Node) ExecutableMessage
98+
Instantiate() ExecutableMessage
9999
Type() string
100100
}
101101
```
@@ -111,7 +111,6 @@ Sooo, let's create a new realm
111111
```
112112
git clone https://github.com/TERITORI/gno.git gno-dao-tutorial
113113
cd gno-dao-tutorial
114-
git checkout teritori-unified
115114
mkdir examples/gno.land/r/demo/my_dao
116115
```
117116

0 commit comments

Comments
 (0)