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.
This commit is contained in:
CPerezz 2026-04-18 16:03:10 +02:00
parent fc2d55dd58
commit c958bbc73b
No known key found for this signature in database
GPG key ID: 62045F34B97177DD

View file

@ -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.