From c958bbc73b0f11d5e2d81fb0e2ef9e3014fd5cde Mon Sep 17 00:00:00 2001 From: CPerezz Date: Sat, 18 Apr 2026 16:03:10 +0200 Subject: [PATCH] core/state/partial: adopt new CodeChanges type for bal-devnet-3 Upstream bal-devnet-3 replaced the CodeChange struct with raw []byte in ConstructionAccountAccesses.CodeChanges (map[uint16][]byte). Update the test builder accordingly so the package compiles against the new API. --- core/state/partial/state_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state/partial/state_test.go b/core/state/partial/state_test.go index 0929411f2d..1fa63e7cfc 100644 --- a/core/state/partial/state_test.go +++ b/core/state/partial/state_test.go @@ -82,9 +82,9 @@ func (b *testBALBuilder) StorageWrite(txIdx uint16, addr common.Address, slot, v func (b *testBALBuilder) CodeChange(addr common.Address, txIdx uint16, code []byte) { acc := b.ensureAccount(addr) if acc.CodeChanges == nil { - acc.CodeChanges = make(map[uint16]bal.CodeChange) + acc.CodeChanges = make(map[uint16][]byte) } - acc.CodeChanges[txIdx] = bal.CodeChange{TxIdx: txIdx, Code: code} + acc.CodeChanges[txIdx] = code } // Build converts the construction BAL to the encoding format via RLP round-trip.