Skip to content

BAL: StorageChange to uint256, rename Data to Bytecode#19134

Merged
yperbasis merged 7 commits intomainfrom
shohamc1/update-bal-types
Feb 13, 2026
Merged

BAL: StorageChange to uint256, rename Data to Bytecode#19134
yperbasis merged 7 commits intomainfrom
shohamc1/update-bal-types

Conversation

@shohamc1
Copy link
Member

No description provided.

@shohamc1 shohamc1 added the Glamsterdam https://eips.ethereum.org/EIPS/eip-7773 label Feb 12, 2026
}
sc.Index = uint16(idx)
value, err := decodeUint256Hash(s)
valBytes, err := s.Bytes()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can simply use s.Uint256()

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Block Access List (BAL) data model to use uint256.Int directly for storage values and renames CodeChange.Data to CodeChange.Bytecode, propagating the changes through RLP encoding/decoding, proto conversions, and related tests.

Changes:

  • Change StorageChange.Value type from common.Hash to uint256.Int, updating RLP encode/decode logic accordingly.
  • Rename CodeChange.Data to CodeChange.Bytecode and update serialization/debug/proto conversion code paths.
  • Update BAL creation/version map logic and adjust affected tests to the new types/field names.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
execution/types/block_access_list.go Core BAL type updates (storage value type + code field rename), plus RLP + proto conversion updates.
execution/types/block_access_list_test.go Updates BAL RLP encoding test vectors/fixtures to use uint256.Int and Bytecode.
execution/state/versionmap.go Adapts version map write logic to consume storage values as uint256.Int and code as Bytecode.
execution/stagedsync/bal_create.go Updates BAL creation to record storage writes as uint256.Int and code changes as Bytecode.
execution/stagedsync/bal_create_test.go Updates assertions to read uint256.Int values directly.
execution/execmodule/moduleutil/grpc_test.go Updates test BAL fixtures to use uint256.Int and Bytecode.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 1075 to 1079
val := change.Value
slotChanges.Changes = append(slotChanges.Changes, &typesproto.BlockAccessListStorageChange{
Index: uint32(change.Index),
Value: gointerfaces.ConvertHashToH256(change.Value),
Value: gointerfaces.ConvertUint256IntToH256(&val),
})
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary copy of the uint256.Int before converting to H256. Since change is already a pointer, you can pass &change.Value directly to ConvertUint256IntToH256 to avoid an extra copy and simplify the code.

Copilot uses AI. Check for mistakes.
Comment on lines 1160 to 1164
val := change.Value
slotChanges.Changes = append(slotChanges.Changes, &executionproto.BlockAccessListStorageChange{
Index: uint32(change.Index),
Value: gointerfaces.ConvertHashToH256(change.Value),
Value: gointerfaces.ConvertUint256IntToH256(&val),
})
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary copy of the uint256.Int before converting to H256. Since change is already a pointer, you can pass &change.Value directly to ConvertUint256IntToH256 to avoid an extra copy and simplify the code.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yperbasis yperbasis enabled auto-merge (squash) February 13, 2026 12:25
@yperbasis yperbasis merged commit 2423c3d into main Feb 13, 2026
27 of 29 checks passed
@yperbasis yperbasis deleted the shohamc1/update-bal-types branch February 13, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Glamsterdam https://eips.ethereum.org/EIPS/eip-7773

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants