Skip to content

Commit 723c9ca

Browse files
authored
Update EIP-8141: fix typos
Merged by EIP-Bot.
1 parent 6f46a8c commit 723c9ca

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

EIPS/eip-8141.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ There are three modes:
6565
| 1 | `VERIFY` | Frame identifies as transaction validation |
6666
| 2 | `SENDER` | Execute frame as `sender` |
6767

68-
#### `DEFAULT` Mode
68+
##### `DEFAULT` Mode
6969

7070
Frame executes as regular call where the caller address is `ENTRY_POINT`.
7171

@@ -112,7 +112,8 @@ With the frame transaction, the signature may be at an arbitrary location in the
112112
```python
113113
def compute_sig_hash(tx: FrameTx) -> Hash:
114114
for i, frame in enumerate(tx.frames):
115-
tx.frames[i].data = Bytes()
115+
if frame.mode == VERIFY:
116+
tx.frames[i].data = Bytes()
116117
return keccak(rlp(tx))
117118
```
118119

0 commit comments

Comments
 (0)