Skip to content

Commit dc2c22d

Browse files
committed
address review: replace DIFFICULTY with PREVRANDAO, explain view annotation on system contracts
1 parent 31d31b9 commit dc2c22d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/dev/execution/system-contracts.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ Attempts to access volatile data while disabled revert immediately, preventing b
133133

134134
**Interface:**
135135

136+
Functions are declared `view` so they can be called from `view` contexts.
137+
The node intercepts these calls and tracks the restriction outside EVM storage, so no state modification occurs.
138+
136139
```solidity
137140
interface IMegaAccessControl {
138141
function disableVolatileDataAccess() external view;

docs/dev/execution/volatile-data.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ Accessing any of these opcodes triggers a **20,000,000 compute gas** detention c
2525
| `NUMBER` | Current block number |
2626
| `TIMESTAMP` | Current block timestamp |
2727
| `COINBASE` | Block beneficiary address |
28-
| `DIFFICULTY` | Block difficulty |
28+
| `PREVRANDAO` | Previous block randomness |
2929
| `GASLIMIT` | Block gas limit |
3030
| `BASEFEE` | Base fee per gas |
31-
| `PREVRANDAO` | Previous block randomness |
3231
| `BLOCKHASH` | Historical block hash |
3332
| `BLOBBASEFEE` | Blob base fee |
3433
| `BLOBHASH` | Blob hash lookup |

0 commit comments

Comments
 (0)