From 2c2bc34eeb2ef0bc3cab1c1b543d8b1af0cb80af Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Sun, 19 Oct 2025 00:25:55 +0800 Subject: [PATCH] core/vm: optimize opExtCodeHash using SetBytes32 --- core/vm/instructions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vm/instructions.go b/core/vm/instructions.go index 44d3e81a9cf..31d97712301 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -411,7 +411,7 @@ func opExtCodeHash(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { if evm.StateDB.Empty(address) { slot.Clear() } else { - slot.SetBytes(evm.StateDB.GetCodeHash(address).Bytes()) + slot.SetBytes32(evm.StateDB.GetCodeHash(address).Bytes()) } return nil, nil }