Skip to content

Commit

Permalink
docs: add another commit about triggering a txn to userguide
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu committed Oct 8, 2024
1 parent 8b29cae commit 1aa5dfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/userguides/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def update_table(log):
@app.on_(chain.blocks)
def use_table(blk):
if app.state.table[...].mean() > app.state.table[...].sum():
# Trigger your app to send a transaction from `app.signer`
contract.myMethod(..., sender=app.signer)
...
```
Expand Down

0 comments on commit 1aa5dfa

Please sign in to comment.