Skip to content

Commit

Permalink
Merge pull request #71 from jannotti/hdr-access-tweak
Browse files Browse the repository at this point in the history
Don't allow block access after FirstValid, to make LogicSigs cleaner
  • Loading branch information
algofoundation authored Aug 9, 2022
2 parents a9f6164 + 559f59f commit 2dd5435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/TEAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ Account fields used in the `acct_params_get` opcode.
| `app_params_get f` | X is field F from app A. Y is 1 if A exists, else 0 |
| `acct_params_get f` | X is field F from account A. Y is 1 if A owns positive algos, else 0 |
| `log` | write A to log state of the current application |
| `block f` | field F of block A. Fail unless A falls between txn.LastValid-1002 and the current round (exclusive) |
| `block f` | field F of block A. Fail unless A falls between txn.LastValid-1002 and txn.FirstValid (exclusive) |

### Inner Transactions

Expand Down
2 changes: 1 addition & 1 deletion dev/TEAL_opcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ The notation A,B indicates that A and B are interpreted as a uint128 value, with

- Opcode: 0xd1 {uint8 block field}
- Stack: ..., A: uint64 → ..., any
- field F of block A. Fail unless A falls between txn.LastValid-1002 and the current round (exclusive)
- field F of block A. Fail unless A falls between txn.LastValid-1002 and txn.FirstValid (exclusive)
- Availability: v7

`block` Fields:
Expand Down

0 comments on commit 2dd5435

Please sign in to comment.