mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
core/vm: optimize opExtCodeHash using SetBytes32
This commit is contained in:
parent
0ec63272bf
commit
2c2bc34eeb
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@ func opExtCodeHash(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
||||||
if evm.StateDB.Empty(address) {
|
if evm.StateDB.Empty(address) {
|
||||||
slot.Clear()
|
slot.Clear()
|
||||||
} else {
|
} else {
|
||||||
slot.SetBytes(evm.StateDB.GetCodeHash(address).Bytes())
|
slot.SetBytes32(evm.StateDB.GetCodeHash(address).Bytes())
|
||||||
}
|
}
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue