From aba837cfc50ba9d6dc0a0d6359fc580580d92f46 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Sun, 19 Oct 2025 00:41:24 +0800 Subject: [PATCH] core/vm: optimize opKeccak256 using uint256.Int.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 44d3e81a9c..563a65a50a 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -240,7 +240,7 @@ func opKeccak256(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { if evm.Config.EnablePreimageRecording { evm.StateDB.AddPreimage(evm.hasherBuf, data) } - size.SetBytes(evm.hasherBuf[:]) + size.SetBytes32(evm.hasherBuf[:]) return nil, nil }