From fbfeaea6f72dcc5978ed7a52dafa29908d807621 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Sun, 19 Oct 2025 09:21:24 +0800 Subject: [PATCH] core/vm: optimize opTload using uint256.Int.SetBytes32 --- core/vm/eips.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vm/eips.go b/core/vm/eips.go index d7ed18648e..89b044ec49 100644 --- a/core/vm/eips.go +++ b/core/vm/eips.go @@ -203,7 +203,7 @@ func opTload(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { loc := scope.Stack.peek() hash := common.Hash(loc.Bytes32()) val := evm.StateDB.GetTransientState(scope.Contract.Address(), hash) - loc.SetBytes(val.Bytes()) + loc.SetBytes32(val.Bytes()) return nil, nil }