Skip to content

Commit 2dd5435

Browse files
Merge pull request #71 from jannotti/hdr-access-tweak
Don't allow block access after FirstValid, to make LogicSigs cleaner
2 parents a9f6164 + 559f59f commit 2dd5435

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/TEAL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ Account fields used in the `acct_params_get` opcode.
623623
| `app_params_get f` | X is field F from app A. Y is 1 if A exists, else 0 |
624624
| `acct_params_get f` | X is field F from account A. Y is 1 if A owns positive algos, else 0 |
625625
| `log` | write A to log state of the current application |
626-
| `block f` | field F of block A. Fail unless A falls between txn.LastValid-1002 and the current round (exclusive) |
626+
| `block f` | field F of block A. Fail unless A falls between txn.LastValid-1002 and txn.FirstValid (exclusive) |
627627

628628
### Inner Transactions
629629

dev/TEAL_opcodes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ The notation A,B indicates that A and B are interpreted as a uint128 value, with
14091409

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

14151415
`block` Fields:

0 commit comments

Comments
 (0)