Skip to content

Commit

Permalink
Update Block docs to match spec change (#503)
Browse files Browse the repository at this point in the history
* Update `Block` docs

* Changelog update
  • Loading branch information
jasonpaulos committed Aug 11, 2022
1 parent 1fe28f0 commit d3f688b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* CI: Fail readthedocs build on warning ([#478](https://github.com/algorand/pyteal/pull/478))

## Changed
* Update `Block` docs to match spec change ([#503](https://github.com/algorand/pyteal/pull/503))

# 0.15.0
## Added
Expand Down
8 changes: 4 additions & 4 deletions pyteal/ast/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def seed(cls, block: Expr) -> Expr:
Args:
block: A block index that corresponds to the block to check,
must be evaluated to uint64. Fails if the block index is not less than the
current round or more than 1001 rounds before txn.LastValid.
must be evaluated to uint64. Fails if the block index is not less than
:code:`Txn.first_valid()` or more than 1001 rounds before :code:`Txn.last_valid()`.
"""
return cls(BlockField.block_seed, block)

Expand All @@ -71,8 +71,8 @@ def timestamp(cls, block: Expr) -> Expr:
Args:
block: A block index that corresponds to the block to check,
must be evaluated to uint64. Fails if the block index is not less than the
current round or more than 1001 rounds before txn.LastValid.
must be evaluated to uint64. Fails if the block index is not less than
:code:`Txn.first_valid()` or more than 1001 rounds before :code:`Txn.last_valid()`.
"""
return cls(BlockField.block_timestamp, block)

Expand Down

0 comments on commit d3f688b

Please sign in to comment.