Skip to content

Commit

Permalink
Merge pull request #32 from blukat29/setcode
Browse files Browse the repository at this point in the history
kip-228: SetCodeTx updates CodeInfo as well
  • Loading branch information
blukat29 authored Dec 6, 2024
2 parents f2c87ef + c58a2fc commit 578b509
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions KIPs/kip-228.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,15 @@ Its consensus type prefix (that affects `block.transactionRoot`) is `ENVELOPED_S

#### Behavior

The transaction’s behavior follows that of EIP-7702 except for the following:

- For each authorization tuple `[chain_id, address, nonce, y_parity, r, s]`, fetch the AccountKey field of the recovered authority account.
- Verify that the AccountKey is of type `AccountKeyTypeLegacy`. If verification fails, immediately stop processing the tuple and continue to the next tuple in the list.
The transaction’s behavior follows that of [EIP-7702](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7702.md) except for the following:

For each authorization tuple `[chain_id, address, nonce, y_parity, r, s]`,
- After recovering the authority,
- Fetch the AccountKey field of the recovered authority account.
- Verify that the AccountKey is of type `AccountKeyTypeLegacy`. If verification fails, immediately stop processing the tuple and continue to the next tuple in the list.
- When setting the code of the authority,
- Also set its codeInfo to `0x11 (VmVersion1 & EVM)`
- As a special case, if address is `0x0000000000000000000000000000000000000000`, reset the authority account's codeInfo to `0x00`.

#### Delegation Designation

Expand Down

0 comments on commit 578b509

Please sign in to comment.