mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 07:58:40 +00:00
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:
parent
fc2d55dd58
commit
c958bbc73b
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue