Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,11 @@ typewriter.state: StorageView<State>;

`typewriter.state` resolves the top-level Solidity `state` variable by one proxy
layer. It reads the runtime's local revm-backed storage mirror, so accepted state
is visible before onchain inclusion and leaf accesses return promises.
is visible before onchain inclusion. Leaf accesses are synchronous and return
values.

```ts
const balance = await typewriter.state.balances[accountID];
const balance = typewriter.state.balances[accountID];
```

`typewriter.state` reflects locally accepted state, which can be ahead of what is `included` or `finalized` onchain.
Expand Down
Loading
Loading