Skip to content

Commit 006b97c

Browse files
committed
Sync CanonicalABI.md and canonical-abi/definitions.py
1 parent 0013acd commit 006b97c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: design/mvp/CanonicalABI.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,14 @@ state indicates whether the instance may be called from the outside world
240240
through an export. The `HandleTable` is defined next.
241241
```python
242242
class ComponentInstance:
243-
may_leave = True
244-
may_enter = True
243+
may_leave: bool
244+
may_enter: bool
245245
handles: HandleTable
246246

247247
def __init__(self):
248-
handles = HandleTable()
248+
self.may_leave = True
249+
self.may_enter = True
250+
self.handles = HandleTable()
249251
```
250252

251253
Lastly, the `called_as_export` field of `Context` indicates whether the lifted

0 commit comments

Comments
 (0)