Skip to content

Commit

Permalink
Add release note for builtin attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbillig committed Jan 31, 2021
1 parent eb12b0b commit c9f851c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions newsfragments/208.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Add support for `block`, `msg`, `chain`, and `tx` properties:
```
block.coinbase: address
block.difficulty: u256
block.number: u256
block.timestamp: u256
chain.id: u256
msg.value: u256
tx.gas_price: u256
tx.origin: address
```
(Note that `msg.sender: address` was added previously.)

Example:
```
def post_fork() -> bool:
return block.number > 2675000
```

0 comments on commit c9f851c

Please sign in to comment.