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 }