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 Aug 26, 2024
1 parent 0a69d16 commit 344d387
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 344d387

Please sign in to comment.