From 967c6138022d091e49c19b9b04554ab1593484f9 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Sun, 19 Oct 2025 00:38:47 +0800 Subject: [PATCH] core/vm: optimize opCreate2 using uint256.Int.SetBytes20 --- 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..6fabaab026 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -718,7 +718,7 @@ func opCreate2(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { if suberr != nil { stackvalue.Clear() } else { - stackvalue.SetBytes(addr.Bytes()) + stackvalue.SetBytes20(addr.Bytes()) } scope.Stack.push(&stackvalue) scope.Contract.RefundGas(returnGas, evm.Config.Tracer, tracing.GasChangeCallLeftOverRefunded)