Skip to content

Commit cf46806

Browse files
authored
insert bytecode into witness for EXTCODEHASH opcode (#1265)
* insert bytecode into witness for EXTCODEHASH opcode * bump version
1 parent 88dcc09 commit cf46806

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

core/state/statedb.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ func (s *StateDB) GetKeccakCodeHash(addr common.Address) common.Hash {
338338
if stateObject == nil {
339339
return common.Hash{}
340340
}
341+
if s.witness != nil {
342+
s.witness.AddCode(stateObject.Code(s.db))
343+
}
341344
return common.BytesToHash(stateObject.KeccakCodeHash())
342345
}
343346

params/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
const (
2525
VersionMajor = 5 // Major version component of the current release
2626
VersionMinor = 10 // Minor version component of the current release
27-
VersionPatch = 0 // Patch version component of the current release
27+
VersionPatch = 1 // Patch version component of the current release
2828
VersionMeta = "mainnet" // Version metadata to append to the version string
2929
)
3030

0 commit comments

Comments
 (0)